BotSharp/Bot.Rasa/Intents/IntentResponseMessage.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

37 lines
901 B
C#

using Bot.Rasa.Models;
using EntityFrameworkCore.BootKit;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;
namespace Bot.Rasa.Intents
{
[Table("Bot_IntentResponseMessage")]
public class IntentResponseMessage : DbRecord, IDbRecord
{
[Required]
[StringLength(36)]
public String IntentResponseId { get; set; }
public AIResponseMessageType Type { get; set; }
[Required]
[MaxLength(3)]
public String Lang { get; set; }
/// <summary>
/// json list data
/// </summary>
[MaxLength(1024)]
public String Speech { get; set; }
/// <summary>
/// custom json payload
/// </summary>
[MaxLength(1024)]
public String Payload { get; set; }
}
}