Retention and limits
Storage maintenance
Exports
InMemoryStore
Implement memory in process-local storage that is lost on process exit.Example
Example
InMemoryStore.delete_all
Parameters and example
Parameters and example
InMemoryStore.delete_user
Parameters and example
Parameters and example
InMemoryStore.purge_expired
Parameters and example
Parameters and example
InMemoryStore.put
Parameters and example
Parameters and example
InMemoryStore.get
Parameters and example
Parameters and example
InMemoryStore.list
Parameters and example
Parameters and example
InMemoryStore.search
Parameters and example
Parameters and example
InMemoryStore.delete
Parameters and example
Parameters and example
InMemoryStore.start
Example
Example
InMemoryStore.close
Example
Example
MemoryCleanupPage
Physical removals in a bounded sweep; continue even when deleted is zero.— means no declared default):
Parameters and example
Parameters and example
MemoryConflictError
A conditional write refers to a stale or missing memory revision.Example
Example
MemoryPage
A bounded page; pass next_cursor as after, even for an empty page.— means no declared default):
Parameters and example
Parameters and example
MemoryRecord
One deliberate memory; timestamps are UTC epoch seconds. Providers assign opaque revisions and timestamps on writes. Source records provenance, not instructions or authorization. Payloads must be JSON-safe.— means no declared default):
Parameters and example
Parameters and example
MemoryScope
Trusted application/user isolation, with an optional logical namespace.— means no declared default):
Parameters and example
Parameters and example
MemoryStorageError
Memory persistence failed without exposing private provider details.Example
Example
MemoryStore
Async persistence contract for explicit cross-session memories. Every operation must enforce the complete scope in the datastore. Expired records are invisible. Writes and revision checks are atomic. Reads return detached records. No method may invoke models or extract memories implicitly.Example
Example
MemoryStore.start
Example
Example
MemoryStore.close
Example
Example
MemoryStore.put
Parameters and example
Parameters and example
MemoryStore.get
Parameters and example
Parameters and example
MemoryStore.list
Parameters and example
Parameters and example
MemoryStore.search
Parameters and example
Parameters and example
MemoryStore.delete
Parameters and example
Parameters and example
MemoryStore.delete_all
Parameters and example
Parameters and example
MemoryStore.delete_user
Parameters and example
Parameters and example
MemoryStore.purge_expired
Parameters and example
Parameters and example