29 lines
668 B
C#
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>();
|
|
}
|
|
}
|
|
}
|