2025-07-07 17:24:44 +00:00
|
|
|
using BotSharp.Abstraction.SideCar.Models;
|
|
|
|
|
|
2024-11-04 22:44:41 +00:00
|
|
|
namespace BotSharp.Abstraction.SideCar;
|
2024-10-29 19:59:46 +00:00
|
|
|
|
|
|
|
|
public interface IConversationSideCar
|
|
|
|
|
{
|
2024-11-04 22:44:41 +00:00
|
|
|
string Provider { get; }
|
|
|
|
|
|
2024-10-29 19:59:46 +00:00
|
|
|
bool IsEnabled();
|
|
|
|
|
void AppendConversationDialogs(string conversationId, List<DialogElement> messages);
|
|
|
|
|
List<DialogElement> GetConversationDialogs(string conversationId);
|
|
|
|
|
void UpdateConversationBreakpoint(string conversationId, ConversationBreakpoint breakpoint);
|
|
|
|
|
ConversationBreakpoint? GetConversationBreakpoint(string conversationId);
|
2025-06-18 20:03:16 +00:00
|
|
|
void UpdateConversationStates(string conversationId, List<StateKeyValue> states);
|
2024-12-10 21:48:49 +00:00
|
|
|
Task<RoleDialogModel> SendMessage(string agentId, string text,
|
2025-07-07 17:24:44 +00:00
|
|
|
PostbackMessageModel? postback = null,
|
|
|
|
|
List<MessageState>? states = null,
|
|
|
|
|
List<DialogElement>? dialogs = null,
|
|
|
|
|
SideCarOptions? options = null);
|
2024-10-29 19:59:46 +00:00
|
|
|
}
|