Skip to main content

Module memory

Module memory 

Source
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§

AnchoredSummary
Structured compaction summary with anchored sections.
GraphRecallParams
Parameters for a graph-view recall call, used by ContextMemoryBackend::recall_graph_facts.
MemCorrection
A user correction projection used by context assembly.
MemDocumentChunk
A document chunk search result used by context assembly.
MemGraphFact
A graph fact projection used by context assembly.
MemGraphNeighbor
A neighbor fact in a graph recall result.
MemPersonaFact
A persona fact row projection used by context assembly.
MemReasoningStrategy
A reasoning strategy projection used by context assembly.
MemRecalledMessage
A recalled message projection used by context assembly.
MemSessionSummary
A cross-session summary search result used by context assembly.
MemSummary
A conversation summary projection used by context assembly.
MemTrajectoryEntry
A trajectory entry projection used by context assembly.
MemTreeNode
A memory tree node projection used by context assembly.
RoutingDecision
Routing decision with confidence and optional LLM reasoning.
SpreadingActivationParams
Parameters for spreading activation graph retrieval.

Enums§

CompressionLevel
The three abstraction levels in the compression spectrum.
EdgeType
MAGMA edge type: the semantic category of a relationship between two entities.
MemoryRoute
Classification of which memory backend(s) to query.
RecallView
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§

AsyncMemoryRouter
Async extension for LLM-capable routers.
ContextMemoryBackend
Abstraction over SemanticMemory that zeph-context uses for all memory operations during context assembly.
MemoryRouter
Decides which memory backend(s) to query for a given input.
TokenCounting
Minimal token-counting interface used by zeph-context for 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 to fallback on unknown values.