BotSharp/Bot.Rasa/Models/AIResponse.cs
haiping008@gmail.com 33d42ae035 1. Added context in/ out, lifespan.
2. Import agent in Dialogflow format.
3. Lazy training per input contexts.
2018-03-21 16:07:43 -05:00

35 lines
677 B
C#

using System;
using System.Collections.Generic;
using System.Text;
namespace Bot.Rasa.Models
{
public class AIResponse
{
public string Id { get; set; }
public DateTime Timestamp { get; set; }
public string Lang { get; set; }
public AIResponseResult Result { get; set; }
public AIResponseStatus Status { get; set; }
public string SessionId { get; set; }
public bool IsError
{
get
{
if (Status != null && Status.Code >= 400)
{
return true;
}
return false;
}
}
}
}