BotSharp/BotSharp.Platform.Rasa/Models/RasaResponse.cs

33 lines
745 B
C#
Raw Normal View History

2018-11-19 15:20:59 +00:00
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Text;
namespace BotSharp.Platform.Rasa.Models
{
public class RasaResponse
{
public RasaResponseIntent Intent { get; set; }
//public AIResponseFulfillment Fullfillment { get; set; }
[JsonProperty("intent_ranking")]
public List<RasaResponseIntent> IntentRanking { get; set; }
public List<RasaResponseEntity> Entities { get; set; }
public String Text { get; set; }
public String Project { get; set; }
public String Model { get; set; }
}
public class RasaResponseIntent
{
public String Name { get; set; }
public Decimal Confidence { get; set; }
}
}