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

37 lines
1.2 KiB
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-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; }
2025-02-25 04:35:22 +00:00
void Push(string agentId, string? reason = null, bool updateLazyRouting = true);
void Pop(string? reason = null, bool updateLazyRouting = true);
void PopTo(string agentId, string reason, bool updateLazyRouting = true);
void Replace(string agentId, string? reason = null, bool updateLazyRouting = true);
2024-02-28 20:40:59 +00:00
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();
2025-02-03 21:12:36 +00:00
void SetDialogs(List<RoleDialogModel> dialogs);
List<RoleDialogModel> GetDialogs();
void ResetDialogs();
2024-02-28 16:21:14 +00:00
}