BotSharp/BotSharp.Core/Models/RasaResponse.cs

27 lines
581 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; }
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; }
}
public class RasaResponseIntent
{
public String Name { get; set; }
public Decimal Confidence { get; set; }
}
}