Expand description
agentstategraph-storage — Pluggable storage backends for AgentStateGraph.
Provides the storage trait definitions and built-in backends:
MemoryStorage— fast, ephemeral, for testing and speculationSqliteStorage— durable, single-file, the default for production usePostgresStorage— connection-pooled and shareable: tenants share a database, every row partitioned by tenant id, one tenant per handle
Custom backends can be added by implementing the Storage trait
(which is a blanket impl over ObjectStore + CommitStore + RefStore).
Re-exports§
pub use indexeddb::IndexedDbStorage;pub use memory::MemoryStorage;pub use postgres::PostgresStorage;pub use postgres::RowSecurity;pub use postgres::TenantPool;pub use sqlite::SqliteStorage;pub use traits::CommitStore;pub use traits::CommitTrace;pub use traits::CommitWalk;pub use traits::DEFAULT_GC_GRACE;pub use traits::EpochStore;pub use traits::GC_FRESHEN_AFTER;pub use traits::GcReachability;pub use traits::GcSweep;pub use traits::HISTORY_NAMESPACE_UNKNOWN;pub use traits::HistoryMilestoneRow;pub use traits::HistoryRollupRow;pub use traits::ObjectStore;pub use traits::RefStore;pub use traits::SessionStore;pub use traits::Storage;pub use traits::StorageError;pub use traits::StoreShape;pub use traits::StoreTotals;pub use traits::TableBytes;pub use traits::TaintStore;pub use traits::VacuumStats;pub use oxtel_sql;pub use tokio_postgres;
Modules§
- indexeddb
- IndexedDB storage backend for WASM — browser-native persistent storage.
- memory
- In-memory storage backend.
- postgres
- PostgreSQL storage backend — multi-tenant, connection-pooled.
- sqlite
- SQLite storage backend — durable, single-file, zero-config.
- traits
- Storage trait definitions — the pluggable backend contract.