Expand description
codemem-core: Shared types, traits, and errors for the Codemem memory engine.
Structs§
- Detected
Pattern - A pattern detected across sessions by analyzing memory metadata.
- Edge
- A graph edge connecting two nodes.
- Graph
Config - Configuration for the graph engine.
- Graph
Node - A graph node in the knowledge graph.
- Graph
Stats - Statistics about the graph.
- Memory
Node - A memory node stored in the database.
- Score
Breakdown - Breakdown of the 9-component hybrid scoring.
- Scoring
Weights - Configurable weights for the 9-component hybrid scoring system. All weights should sum to 1.0.
- Search
Result - A search result with hybrid scoring.
- Session
- A session representing a single interaction period with an AI assistant.
- Vector
Config - Configuration for the HNSW vector index.
- Vector
Stats - Statistics about the vector index.
Enums§
- Codemem
Error - Unified error type for Codemem.
- Distance
Metric - Distance metric for vector search.
- Memory
Type - The 7 memory types inspired by AutoMem research.
- Node
Kind - Node types in the knowledge graph.
- Pattern
Type - Types of cross-session patterns that can be detected.
- Relationship
Type - 15 relationship types for the knowledge graph.
Traits§
- Graph
Backend - Graph backend trait for graph operations.
- Vector
Backend - Vector backend trait for HNSW index operations.