InMemoryConversationStore
Models & Types ยท AiDotNet.Agentic.Memory
A process-local IConversationStore that keeps thread histories in memory. Ideal for tests,
single-process apps, and the default zero-config experience; histories are lost when the process exits.
Implements: IConversationStore
For Beginners
The simplest notebook โ kept in RAM. Fast and needs no setup, but forgotten
when the program stops. For history that survives restarts, use JsonFileConversationStore
(or a database-backed store).
Constructors
| Constructor | Summary |
|---|---|
InMemoryConversationStore() |
Methods
| Method | Summary |
|---|---|
Task AppendAsync(string threadId, IReadOnlyList<ChatMessage> messages, CancellationToken cancellationToken) |
|
Task ClearAsync(string threadId, CancellationToken cancellationToken) |
|
Task<IReadOnlyList<ChatMessage>> GetAsync(string threadId, CancellationToken cancellationToken) |
|
Task<IReadOnlyList<string>> ListThreadsAsync(CancellationToken cancellationToken) |