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

21 lines
670 B
C#
Raw Normal View History

2024-02-28 16:21:14 +00:00
namespace BotSharp.Abstraction.Routing;
public interface IRoutingContext
{
string GetCurrentAgentId();
2024-04-22 20:46:47 +00:00
string FirstGoalAgentId();
bool ContainsAgentId(string agentId);
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);
2024-04-22 20:46:47 +00:00
void PopTo(string agentId, string reason);
2024-02-28 20:40:59 +00:00
void Replace(string agentId, string? reason = null);
void Empty(string? reason = null);
2024-02-28 16:21:14 +00:00
}