BotSharp/src/Infrastructure/BotSharp.Abstraction/Routing/IRoutingContext.cs

19 lines
580 B
C#
Raw Normal View History

2024-02-28 16:21:14 +00:00
namespace BotSharp.Abstraction.Routing;
public interface IRoutingContext
{
string GetCurrentAgentId();
2024-02-28 20:40:59 +00:00
string PreviousAgentId();
2024-02-28 16:21:14 +00:00
string OriginAgentId { get; }
2024-02-28 20:40:59 +00:00
string ConversationId { get; }
string MessageId { get; }
void SetMessageId(string conversationId, string messageId);
2024-02-28 16:21:14 +00:00
bool IsEmpty { get; }
string IntentName { get; set; }
2024-02-28 20:40:59 +00:00
int AgentCount { get; }
void Push(string agentId, string? reason = null);
void Pop(string? reason = null);
void Replace(string agentId, string? reason = null);
void Empty(string? reason = null);
2024-02-28 16:21:14 +00:00
}