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

17 lines
574 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);
Task<RoleDialogModel> ExecuteOnce(Agent agent, RoleDialogModel message);
2023-09-03 04:11:53 +00:00
}