2023-06-27 18:31:13 +00:00
|
|
|
using BotSharp.Abstraction.Conversations.Models;
|
2023-06-03 02:07:30 +00:00
|
|
|
|
|
|
|
|
namespace BotSharp.Abstraction.Conversations;
|
|
|
|
|
|
|
|
|
|
public interface IConversationService
|
|
|
|
|
{
|
2023-06-27 18:31:13 +00:00
|
|
|
Task<Conversation> NewConversation(Conversation conversation);
|
|
|
|
|
Task<List<Conversation>> GetConversations();
|
|
|
|
|
Task DeleteConversation(string id);
|
|
|
|
|
Task<string> SendMessage(string agentId, string conversationId, RoleDialogModel lastDalog);
|
|
|
|
|
Task<string> SendMessage(string agentId, string conversationId, List<RoleDialogModel> wholeDialogs);
|
|
|
|
|
List<RoleDialogModel> GetDialogHistory(string agentId, string conversationId);
|
|
|
|
|
Task CleanHistory(string agentId);
|
2023-06-03 02:07:30 +00:00
|
|
|
}
|