InMemoryChatThreadStore class

An in-memory ChatThreadStore — handy for demos, tests, and prototyping before wiring real storage. Titles are derived via autoTitle on save.

Implemented types

Constructors

InMemoryChatThreadStore()

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

delete(String id) → Future<void>
Removes the thread id (no-op if absent).
override
listThreads() → Future<List<ChatThread>>
All stored threads, newest first.
override
load(String id) → Future<AiConversation?>
Returns the stored conversation for id, or null if none exists.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
save(String id, AiConversation conversation) → Future<void>
Writes conversation for id, replacing any previous value.
override
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited