BotSharp/src/Infrastructure/BotSharp.Core/Routing/Handlers/ConversationEndRoutingHandler.cs

31 lines
989 B
C#
Raw Normal View History

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 ConversationEndRoutingHandler : RoutingHandlerBase, IRoutingHandler
{
public string Name => "conversation_end";
public string Description => "Call this function when user wants to end this conversation or all tasks have been 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("reason", "why this conversation is end")
2023-09-22 20:38:58 +00:00
};
public bool IsReasoning => false;
public ConversationEndRoutingHandler(IServiceProvider services, ILogger<ConversationEndRoutingHandler> logger, RoutingSettings settings)
: base(services, logger, settings)
{
}
public Task<RoleDialogModel> Handle(IRoutingService routing, FunctionCallFromLlm inst)
2023-09-22 20:38:58 +00:00
{
throw new NotImplementedException();
}
}