2023-08-09 21:49:55 +00:00
|
|
|
namespace BotSharp.Abstraction.Conversations;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Conversation state service to track the context in the conversation lifecycle
|
|
|
|
|
/// </summary>
|
|
|
|
|
public interface IConversationStateService
|
|
|
|
|
{
|
2023-10-27 19:05:18 +00:00
|
|
|
string GetConversationId();
|
2023-09-06 03:19:36 +00:00
|
|
|
ConversationState Load(string conversationId);
|
2023-09-14 01:41:51 +00:00
|
|
|
string GetState(string name, string defaultValue = "");
|
2023-09-25 22:46:00 +00:00
|
|
|
bool ContainsState(string name);
|
2023-09-06 03:19:36 +00:00
|
|
|
ConversationState GetStates();
|
2023-09-18 08:35:02 +00:00
|
|
|
IConversationStateService SetState<T>(string name, T value);
|
2023-08-15 15:41:34 +00:00
|
|
|
void CleanState();
|
2023-08-09 21:49:55 +00:00
|
|
|
void Save();
|
|
|
|
|
}
|