BotSharp/BotSharp.Core/Engines/Rasa/RasaResponse.cs
2018-06-14 07:01:17 -05:00

27 lines
581 B
C#

using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Text;
namespace BotSharp.Core.Models
{
public class RasaResponse
{
public RasaResponseIntent Intent { get; set; }
[JsonProperty("intent_ranking")]
public List<RasaResponseIntent> IntentRanking { get; set; }
public List<RasaResponseEntity> Entities { get; set; }
public String Text { get; set; }
}
public class RasaResponseIntent
{
public String Name { get; set; }
public Decimal Confidence { get; set; }
}
}