Expand description
Storage - Backend Trait and Implementations
TigerStyle: Abstract storage with simulation-first testing.
§Architecture
┌─────────────────────────────────────────────────────────────┐
│ StorageBackend Trait │
└─────────────────────────────────────────────────────────────┘
↑ ↑ ↑
│ │ │
┌────────┴────────┐ ┌────────┴────────┐ ┌───────┴────────┐
│SimStorageBackend│ │LanceStorageBack │ │ PostgresBackend│
│ (testing) │ │ (embedded) │ │ (server) │
└─────────────────┘ └─────────────────┘ └────────────────┘§Simulation-First
Tests are written BEFORE implementation. SimStorageBackend enables deterministic testing with fault injection.
Structs§
- Entity
- An entity in archival memory.
- Entity
Builder - Builder for Entity with fluent API.
- Evolution
Relation - A relationship between two memories showing how one evolved from another.
- Evolution
Relation Builder - Builder for EvolutionRelation with fluent API.
- SimStorage
Backend - In-memory storage backend for testing.
- SimVector
Backend - In-memory vector backend for deterministic simulation testing.
- Source
Ref - Reference to source content (URL, file path, S3 URI, etc.)
- Vector
Search Result - Result of a similarity search.
Enums§
- Entity
Type - Types of entities in archival memory.
- Evolution
Type - Types of evolution relationships between memories.
- Storage
Error - Errors from storage operations.
Traits§
- Storage
Backend - Abstract storage backend for entities.
- Vector
Backend - Trait for vector embedding storage backends.
Type Aliases§
- Storage
Result - Result type for storage operations.