BotSharp/BotSharp.Platform.Dialogflow/Models/AIContext.cs
2018-10-28 21:16:55 -05:00

29 lines
668 B
C#

using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Text;
namespace BotSharp.Platform.Dialogflow.Models
{
[JsonObject]
public class AIContext
{
[JsonProperty("name")]
public string Name { get; set; }
[JsonProperty("parameters")]
public Dictionary<string, object> Parameters { get; set; }
/// <summary>
/// Lifespan of the context measured in requests````
/// </summary>
[JsonProperty("lifespan")]
public int Lifespan { get; set; }
public AIContext()
{
Parameters = new Dictionary<string, object>();
}
}
}