AgentSessionStore Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Defines the contract for storing and retrieving agent conversation threads.
public abstract class AgentSessionStore
type AgentSessionStore = class
Public MustInherit Class AgentSessionStore
- Inheritance
-
AgentSessionStore
- Derived
Remarks
Implementations of this interface enable persistent storage of conversation threads, allowing conversations to be resumed across HTTP requests, application restarts, or different service instances in hosted scenarios.
Constructors
| Name | Description |
|---|---|
| AgentSessionStore() | |
Methods
| Name | Description |
|---|---|
| GetSessionAsync(AIAgent, String, CancellationToken) |
Retrieves a serialized agent session from persistent storage. |
| SaveSessionAsync(AIAgent, String, AgentSession, CancellationToken) |
Saves a serialized agent session to persistent storage. |