Module storage

Module storage 

Source
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.
EntityBuilder
Builder for Entity with fluent API.
EvolutionRelation
A relationship between two memories showing how one evolved from another.
EvolutionRelationBuilder
Builder for EvolutionRelation with fluent API.
SimStorageBackend
In-memory storage backend for testing.
SimVectorBackend
In-memory vector backend for deterministic simulation testing.
SourceRef
Reference to source content (URL, file path, S3 URI, etc.)
VectorSearchResult
Result of a similarity search.

Enums§

EntityType
Types of entities in archival memory.
EvolutionType
Types of evolution relationships between memories.
StorageError
Errors from storage operations.

Traits§

StorageBackend
Abstract storage backend for entities.
VectorBackend
Trait for vector embedding storage backends.

Type Aliases§

StorageResult
Result type for storage operations.