2023-09-22 20:38:58 +00:00
|
|
|
using BotSharp.Abstraction.Functions.Models;
|
2023-09-24 16:20:02 +00:00
|
|
|
using BotSharp.Abstraction.Models;
|
2023-09-22 20:38:58 +00:00
|
|
|
using BotSharp.Abstraction.Routing;
|
|
|
|
|
using BotSharp.Abstraction.Routing.Settings;
|
|
|
|
|
|
|
|
|
|
namespace BotSharp.Core.Routing.Handlers;
|
|
|
|
|
|
|
|
|
|
public class TaskEndRoutingHandler : RoutingHandlerBase, IRoutingHandler
|
|
|
|
|
{
|
|
|
|
|
public string Name => "task_end";
|
|
|
|
|
|
|
|
|
|
public string Description => "Call this function when current task is completed.";
|
|
|
|
|
|
2023-09-24 16:20:02 +00:00
|
|
|
public List<NameDesc> Parameters => new List<NameDesc>
|
2023-09-22 20:38:58 +00:00
|
|
|
{
|
2023-09-24 16:20:02 +00:00
|
|
|
new NameDesc("abandoned_arguments", "the arguments next task can't reuse")
|
2023-09-22 20:38:58 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
public bool IsReasoning => true;
|
|
|
|
|
|
|
|
|
|
public TaskEndRoutingHandler(IServiceProvider services, ILogger<TaskEndRoutingHandler> logger, RoutingSettings settings)
|
|
|
|
|
: base(services, logger, settings)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
2023-09-27 12:51:15 +00:00
|
|
|
public Task<RoleDialogModel> Handle(IRoutingService routing, FunctionCallFromLlm inst)
|
2023-09-22 20:38:58 +00:00
|
|
|
{
|
|
|
|
|
throw new NotImplementedException();
|
|
|
|
|
}
|
|
|
|
|
}
|