2023-08-28 03:50:10 +00:00
|
|
|
namespace BotSharp.Abstraction.Routing.Models;
|
2023-08-22 04:49:42 +00:00
|
|
|
|
|
|
|
|
public class RoutingArgs
|
|
|
|
|
{
|
2023-09-22 20:38:58 +00:00
|
|
|
[JsonPropertyName("reason")]
|
|
|
|
|
public string Reason { get; set; } = string.Empty;
|
|
|
|
|
|
2023-08-22 04:49:42 +00:00
|
|
|
[JsonPropertyName("agent_name")]
|
2023-09-21 13:08:27 +00:00
|
|
|
public string AgentName { get; set; } = string.Empty;
|
2023-08-22 04:49:42 +00:00
|
|
|
|
|
|
|
|
public override string ToString()
|
|
|
|
|
{
|
2023-09-22 20:38:58 +00:00
|
|
|
return string.IsNullOrEmpty(AgentName) ? "" : $"<Route to {AgentName.ToUpper()} because {Reason}>";
|
2023-08-22 04:49:42 +00:00
|
|
|
}
|
|
|
|
|
}
|