BotSharp/BotSharp.Core/Engines/Rasa/RasaResponse.cs

33 lines
734 B
C#
Raw Normal View History

2018-03-28 22:08:49 +00:00
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Text;
2018-03-28 22:08:49 +00:00
namespace BotSharp.Core.Models
{
public class RasaResponse
{
public RasaResponseIntent Intent { get; set; }
public AIResponseFulfillment Fullfillment { get; set; }
2018-03-28 22:08:49 +00:00
[JsonProperty("intent_ranking")]
public List<RasaResponseIntent> IntentRanking { get; set; }
public List<RasaResponseEntity> Entities { get; set; }
public String Text { get; set; }
2018-08-14 14:23:15 +00:00
public String Project { get; set; }
public String Model { get; set; }
}
public class RasaResponseIntent
{
public String Name { get; set; }
public Decimal Confidence { get; set; }
}
}