BotSharp/src/Infrastructure/BotSharp.Abstraction/Conversations/ConversationCompletionHookBase.cs

24 lines
692 B
C#
Raw Normal View History

2023-07-19 22:30:23 +00:00
using BotSharp.Abstraction.Conversations.Models;
namespace BotSharp.Abstraction.Conversations;
public abstract class ConversationCompletionHookBase
{
protected Agent _agent;
public Agent Agent => _agent;
protected Conversation _conversation;
public Conversation Conversation => _conversation;
protected List<RoleDialogModel> _dialogs;
public List<RoleDialogModel> Dialogs => _dialogs;
public IConversationCompletionHook SetContexts(Agent agent, Conversation conversation, List<RoleDialogModel> dialogs)
{
_agent = agent;
_conversation = conversation;
_dialogs = dialogs;
return this as IConversationCompletionHook;
}
}