2018-12-09 15:57:34 +00:00
|
|
|
|
using System;
|
2018-10-29 02:16:55 +00:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
|
2018-12-09 15:57:34 +00:00
|
|
|
|
namespace BotSharp.Platform.Models.Contexts
|
2018-10-29 02:16:55 +00:00
|
|
|
|
{
|
|
|
|
|
|
public class AIContext
|
|
|
|
|
|
{
|
|
|
|
|
|
public string Name { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public Dictionary<string, object> Parameters { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Lifespan of the context measured in requests````
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public int Lifespan { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public AIContext()
|
|
|
|
|
|
{
|
|
|
|
|
|
Parameters = new Dictionary<string, object>();
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|