2018-03-28 22:08:49 +00:00
|
|
|
|
using Newtonsoft.Json;
|
|
|
|
|
|
using System;
|
2018-03-21 21:07:43 +00:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
|
2018-03-28 22:08:49 +00:00
|
|
|
|
namespace BotSharp.Core.Models
|
2018-03-21 21:07:43 +00:00
|
|
|
|
{
|
|
|
|
|
|
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; }
|
|
|
|
|
|
|
2018-03-21 21:07:43 +00:00
|
|
|
|
public String Text { get; set; }
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public class RasaResponseIntent
|
|
|
|
|
|
{
|
|
|
|
|
|
public String Name { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public Decimal Confidence { get; set; }
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|