Class PrivateConversationState
Defines a state keyed to a conversation and user.
public class PrivateConversationState : AgentState, IPropertyManager, IAgentState
- Inheritance
-
PrivateConversationState
- Implements
- Inherited Members
Remarks
Conversation state is available in any turn in a specific conversation, regardless of user, such as in a group conversation.
Constructors
PrivateConversationState(IStorage)
Defines a state keyed to a conversation and user.
public PrivateConversationState(IStorage storage)
Parameters
storage
IStorageThe storage layer to use.
Remarks
Conversation state is available in any turn in a specific conversation, regardless of user, such as in a group conversation.
Fields
ScopeName
public static readonly string ScopeName
Field Value
Methods
GetStorageKey(ITurnContext)
Gets the key to use when reading and writing state to and from storage.
protected override string GetStorageKey(ITurnContext turnContext)
Parameters
turnContext
ITurnContextThe context object for this turn.
Returns
- string
The storage key.
Remarks
Private conversation state includes the channel ID, conversation ID, and user ID as part of its storage key.