2024-11-20 08:24:26 +00:00
|
|
|
namespace BotSharp.Abstraction.Agents.Models;
|
|
|
|
|
|
2024-11-20 16:13:40 +00:00
|
|
|
public class AgentUtility
|
2024-11-20 08:24:26 +00:00
|
|
|
{
|
2024-11-20 16:13:40 +00:00
|
|
|
public string Name { get; set; }
|
2024-11-20 08:24:26 +00:00
|
|
|
public UtilityContent Content { get; set; }
|
|
|
|
|
|
2024-11-20 16:13:40 +00:00
|
|
|
public AgentUtility()
|
2024-11-20 08:24:26 +00:00
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
2024-11-20 16:13:40 +00:00
|
|
|
public AgentUtility(string utilityName, UtilityContent content)
|
2024-11-20 08:24:26 +00:00
|
|
|
{
|
2024-11-20 16:13:40 +00:00
|
|
|
Name = utilityName;
|
2024-11-20 08:24:26 +00:00
|
|
|
Content = content;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public class UtilityContent
|
|
|
|
|
{
|
|
|
|
|
public IEnumerable<UtilityFunction> Functions { get; set; } = [];
|
|
|
|
|
public IEnumerable<UtilityTemplate> Templates { get; set; } = [];
|
|
|
|
|
|
|
|
|
|
public UtilityContent()
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class UtilityFunction : UtilityBase
|
|
|
|
|
{
|
|
|
|
|
public UtilityFunction()
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public UtilityFunction(string name)
|
|
|
|
|
{
|
|
|
|
|
Name = name;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class UtilityTemplate : UtilityBase
|
|
|
|
|
{
|
|
|
|
|
public UtilityTemplate()
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
2024-11-20 16:13:40 +00:00
|
|
|
public UtilityTemplate(string name)
|
2024-11-20 08:24:26 +00:00
|
|
|
{
|
|
|
|
|
Name = name;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class UtilityBase
|
|
|
|
|
{
|
|
|
|
|
public string Name { get; set; }
|
|
|
|
|
}
|