Expand description
Agent memory system.
Provides persistent memory for agents across sessions. Memory entries are stored as JSON files via StateStore. Supports embedding-based vector search using TF-IDF + cosine similarity.
Re-exports§
pub use embedding_cache::CacheStats;pub use embedding_cache::EmbeddingCache;pub use normalizer::cosine_similarity_f32;pub use normalizer::l2_normalize_f32;pub use normalizer::l2_normalize_f64;
Modules§
- auto_
memory_ bridge - Auto-memory bridge: synchronization between external memory systems and Oxios.
- embedding_
cache - Embedding cache for reducing API calls.
- flash_
attention - Flash Attention — block-wise attention for O(N) memory usage.
- hyperbolic
- Hyperbolic embeddings using the Poincaré ball model.
- normalizer
- Embedding vector normalization utilities.
Structs§
- Chunk
Config - Configuration for text chunking.
- Curation
Candidate - A single candidate for removal during curation.
- Curation
Report - Report from a curation run.
- Hnsw
Index - HNSW approximate nearest neighbor index.
- Hnsw
Memory Index - HNSW index manager for memory entries.
- Memory
Budget - Budget for memory curation — limits per type.
- Memory
Entry - A single memory entry.
- Memory
Graph - A memory link graph for computing PageRank-style importance.
- Memory
Manager - Agent memory manager.
- Semantic
Hit - Result of a semantic search hit.
- Text
Chunk - A text chunk with metadata.
- Text
Vector - Simple TF-IDF vector for text similarity.
Enums§
- Memory
Type - Memory entry type.
Functions§
- chunk_
fixed - Split text into fixed-size overlapping chunks.
- chunk_
paragraphs - Split text into paragraphs, then group paragraphs into chunks
that don’t exceed
max_chunk_size. - content_
hash - Compute a stable hash of content for deduplication.