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

24 lines
780 B
C#
Raw Normal View History

2023-11-01 01:48:12 +00:00
using BotSharp.Abstraction.Routing.Models;
2023-09-03 04:11:53 +00:00
namespace BotSharp.Abstraction.Routing;
public interface IRoutingService
{
2023-10-30 16:48:18 +00:00
Agent Router { get; }
2023-11-01 01:48:12 +00:00
RoutingItem[] GetRoutingItems();
RoutingRule[] GetRulesByName(string name);
RoutingRule[] GetRulesByAgentId(string id);
List<RoutingHandlerDef> GetHandlers();
void ResetRecursiveCounter();
2023-10-30 16:48:18 +00:00
Task<bool> InvokeAgent(string agentId, List<RoleDialogModel> dialogs);
Task<RoleDialogModel> InstructLoop(RoleDialogModel message);
2023-11-16 18:20:43 +00:00
/// <summary>
/// Talk to a specific Agent directly, bypassing the Router
/// </summary>
/// <param name="agent"></param>
/// <param name="message"></param>
/// <returns></returns>
2023-10-30 16:48:18 +00:00
Task<RoleDialogModel> ExecuteOnce(Agent agent, RoleDialogModel message);
2023-09-03 04:11:53 +00:00
}