2023-07-19 12:08:40 +00:00
|
|
|
using BotSharp.Abstraction.Conversations.Models;
|
|
|
|
|
|
|
|
|
|
namespace BotSharp.Abstraction.Conversations;
|
|
|
|
|
|
|
|
|
|
public interface IConversationCompletionHook
|
|
|
|
|
{
|
2023-07-19 22:30:23 +00:00
|
|
|
Agent Agent { get; }
|
|
|
|
|
Conversation Conversation { get; }
|
|
|
|
|
List<RoleDialogModel> Dialogs { get; }
|
|
|
|
|
IConversationCompletionHook SetContexts(Agent agent, Conversation conversation, List<RoleDialogModel> dialogs);
|
|
|
|
|
Task BeforeCompletion();
|
|
|
|
|
Task<string> AfterCompletion(string response);
|
2023-07-19 12:08:40 +00:00
|
|
|
}
|