Expand description
Shared memory interface types used by both zeph-memory (Layer 1) and
zeph-context (Layer 1) without a cross-layer dependency.
Moving these pure interface types here resolves the same-layer violation
zeph-context → zeph-memory (issue #3665).
Structs§
- Anchored
Summary - Structured compaction summary with anchored sections.
- Graph
Recall Params - Parameters for a graph-view recall call, used by
ContextMemoryBackend::recall_graph_facts. - MemCorrection
- A user correction projection used by context assembly.
- MemDocument
Chunk - A document chunk search result used by context assembly.
- MemGraph
Fact - A graph fact projection used by context assembly.
- MemGraph
Neighbor - A neighbor fact in a graph recall result.
- MemPersona
Fact - A persona fact row projection used by context assembly.
- MemReasoning
Strategy - A reasoning strategy projection used by context assembly.
- MemRecalled
Message - A recalled message projection used by context assembly.
- MemSession
Summary - A cross-session summary search result used by context assembly.
- MemSummary
- A conversation summary projection used by context assembly.
- MemTrajectory
Entry - A trajectory entry projection used by context assembly.
- MemTree
Node - A memory tree node projection used by context assembly.
- Routing
Decision - Routing decision with confidence and optional LLM reasoning.
- Spreading
Activation Params - Parameters for spreading activation graph retrieval.
Enums§
- Compression
Level - The three abstraction levels in the compression spectrum.
- Edge
Type - MAGMA edge type: the semantic category of a relationship between two entities.
- Memory
Route - Classification of which memory backend(s) to query.
- Recall
View - Enrichment level for view-aware graph recall.
Constants§
- CAUSAL_
MARKERS - MAGMA causal edge markers used by
classify_graph_subgraph. - ENTITY_
MARKERS - MAGMA entity/structural markers.
- TEMPORAL_
MARKERS - MAGMA temporal edge markers for subgraph classification.
- WORD_
BOUNDARY_ TEMPORAL - Single-word temporal tokens that require word-boundary checking.
Traits§
- Async
Memory Router - Async extension for LLM-capable routers.
- Context
Memory Backend - Abstraction over
SemanticMemorythatzeph-contextuses for all memory operations during context assembly. - Memory
Router - Decides which memory backend(s) to query for a given input.
- Token
Counting - Minimal token-counting interface used by
zeph-contextfor budget enforcement.
Functions§
- classify_
graph_ subgraph - Classify a query into MAGMA edge types to use for subgraph-scoped BFS retrieval.
- parse_
route_ str - Parse a route name string into a
MemoryRoute, falling back tofallbackon unknown values.