Skip to main content

Module memory_backend

Module memory_backend 

Source
Expand description

Adapters that bridge zeph-memory concrete types to zeph-common traits consumed by zeph-context.

This module is the only place in the workspace where both zeph-memory and zeph-context interface types are visible simultaneously — by design. zeph-core builds adapters here at Layer 4 so that zeph-context (Layer 1) never imports zeph-memory (Layer 1).

Structs§

SemanticMemoryBackend
Adapter that implements ContextMemoryBackend by delegating to SemanticMemory.
TokenCounterAdapter
Adapter implementing zeph_context::summarization::MessageTokenCounter for zeph_memory::TokenCounter.

Functions§

build_memory_router
Build a memory router from the context manager’s routing configuration.