Skip to main content

Crate codemem_core

Crate codemem_core 

Source
Expand description

codemem-core: Shared types, traits, and errors for the Codemem memory engine.

Structs§

DetectedPattern
A pattern detected across sessions by analyzing memory metadata.
Edge
A graph edge connecting two nodes.
GraphConfig
Configuration for the graph engine.
GraphNode
A graph node in the knowledge graph.
GraphStats
Statistics about the graph.
MemoryNode
A memory node stored in the database.
ScoreBreakdown
Breakdown of the 9-component hybrid scoring.
ScoringWeights
Configurable weights for the 9-component hybrid scoring system. All weights should sum to 1.0.
SearchResult
A search result with hybrid scoring.
Session
A session representing a single interaction period with an AI assistant.
VectorConfig
Configuration for the HNSW vector index.
VectorStats
Statistics about the vector index.

Enums§

CodememError
Unified error type for Codemem.
DistanceMetric
Distance metric for vector search.
MemoryType
The 7 memory types inspired by AutoMem research.
NodeKind
Node types in the knowledge graph.
PatternType
Types of cross-session patterns that can be detected.
RelationshipType
15 relationship types for the knowledge graph.

Traits§

GraphBackend
Graph backend trait for graph operations.
VectorBackend
Vector backend trait for HNSW index operations.