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-11-20 23:10:38 +00:00
|
|
|
string EntryAgentId { 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-10-29 19:59:46 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
int CurrentRecursionDepth { get; }
|
|
|
|
|
int GetRecursiveCounter();
|
2024-10-31 20:32:58 +00:00
|
|
|
void IncreaseRecursiveCounter();
|
2024-10-29 19:59:46 +00:00
|
|
|
void SetRecursiveCounter(int counter);
|
|
|
|
|
void ResetRecursiveCounter();
|
|
|
|
|
|
|
|
|
|
Stack<string> GetAgentStack();
|
|
|
|
|
void SetAgentStack(Stack<string> stack);
|
|
|
|
|
void ResetAgentStack();
|
2024-02-28 16:21:14 +00:00
|
|
|
}
|