2023-10-20 23:57:45 +00:00
|
|
|
using BotSharp.Abstraction.Functions.Models;
|
2023-09-26 03:04:04 +00:00
|
|
|
|
2023-08-28 03:50:10 +00:00
|
|
|
namespace BotSharp.Abstraction.Routing.Models;
|
2023-08-22 04:49:42 +00:00
|
|
|
|
2024-01-24 23:02:59 +00:00
|
|
|
public class RoutableAgent
|
2023-08-22 04:49:42 +00:00
|
|
|
{
|
|
|
|
|
[JsonPropertyName("agent_id")]
|
2023-09-08 22:05:55 +00:00
|
|
|
public string AgentId { get; set; } = string.Empty;
|
2023-08-22 04:49:42 +00:00
|
|
|
|
|
|
|
|
[JsonPropertyName("name")]
|
2023-09-08 22:05:55 +00:00
|
|
|
public string Name { get; set; } = string.Empty;
|
2023-08-25 15:33:21 +00:00
|
|
|
|
|
|
|
|
[JsonPropertyName("description")]
|
2023-09-08 22:05:55 +00:00
|
|
|
public string Description { get; set; } = string.Empty;
|
2023-08-22 04:49:42 +00:00
|
|
|
|
2024-12-10 18:30:41 +00:00
|
|
|
[JsonPropertyName("type")]
|
|
|
|
|
public string Type { get; set; } = AgentType.Task;
|
|
|
|
|
|
2024-01-24 23:02:59 +00:00
|
|
|
[JsonPropertyName("profiles")]
|
|
|
|
|
public List<string> Profiles { get; set; }
|
|
|
|
|
= new List<string>();
|
|
|
|
|
|
2023-10-30 17:44:53 +00:00
|
|
|
[JsonPropertyName("required_fields")]
|
|
|
|
|
public List<ParameterPropertyDef> RequiredFields { get; set; } = new List<ParameterPropertyDef>();
|
|
|
|
|
|
|
|
|
|
[JsonPropertyName("optional_fields")]
|
|
|
|
|
public List<ParameterPropertyDef> OptionalFields { get; set; } = new List<ParameterPropertyDef>();
|
2024-01-06 22:24:22 +00:00
|
|
|
|
|
|
|
|
public override string ToString()
|
|
|
|
|
{
|
|
|
|
|
return Name;
|
|
|
|
|
}
|
2023-08-22 04:49:42 +00:00
|
|
|
}
|