Abstract base class for persistent key-value stores.
Stores enable persistence and memory that can be shared across threads,
scoped to user IDs, assistant IDs, or other arbitrary namespaces.
Some implementations may support semantic search capabilities through
an optional index configuration.
BaseStore()Note:
Semantic search capabilities vary by implementation and are typically
disabled by default. Stores that support this feature can be configured
by providing an index configuration at creation time. Without this
configuration, semantic search is disabled and any index arguments
to storage operations will have no effect.
Similarly, TTL (time-to-live) support is disabled by default.
Subclasses must explicitly set supports_ttl = True to enable this feature.
Execute multiple operations synchronously in a single batch.
Execute multiple operations asynchronously in a single batch.
Retrieve a single item.
Search for items within a namespace prefix.
Store or update an item in the store.
Delete an item.
List and filter namespaces in the store.
Used to explore the organization of data, find specific collections, or navigate the namespace hierarchy.
Asynchronously retrieve a single item.
Asynchronously search for items within a namespace prefix.
Asynchronously store or update an item in the store.
Asynchronously delete an item.
List and filter namespaces in the store asynchronously.
Used to explore the organization of data, find specific collections, or navigate the namespace hierarchy.