VanturaPersistence class abstract
Interface for persistent storage of agent memory.
This allows the SDK to remain decoupled from any specific database implementation.
Constructors
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
-
clearCheckpoint(
) → Future< void> - Clears the saved checkpoint (e.g., after successful completion).
-
clearMessages(
) → Future< void> - Clears all saved messages from the persistent store.
-
deleteOldMessages(
int limit) → Future< void> - Deletes older messages to maintain a specific limit.
-
loadCheckpoint(
) → Future< AgentStateCheckpoint?> - Loads the most recent execution checkpoint. Returns null if no checkpoint exists.
-
loadMessages(
) → Future< List< Map< >String, dynamic> > - Retrieves all saved messages from the persistent store.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
saveCheckpoint(
AgentStateCheckpoint checkpoint) → Future< void> - Saves the agent's execution checkpoint to persistent storage. This allows resuming exactly where the agent left off if interrupted.
-
saveMessage(
String role, String content, {bool isSummary = false, List< Map< ? toolCalls, String? toolCallId}) → Future<String, dynamic> >void> - Saves a message to the persistent store.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited