Skip to main content

Module memory

Module memory 

Source

Re-exports§

pub use backend::MemoryBackendKind;
pub use backend::MemoryBackendProfile;
pub use backend::classify_memory_backend;
pub use backend::default_memory_backend_key;
pub use backend::memory_backend_profile;
pub use backend::selectable_memory_backends;
pub use none::NoneMemory;
pub use response_cache::ResponseCache;
pub use traits::Memory;
pub use traits::ExportFilter;
pub use traits::MemoryCategory;
pub use traits::MemoryEntry;
pub use traits::ProceduralMessage;

Modules§

backend
chunker
Markdown chunker — stub (removed in Construct).
cli
construct memory CLI commands, backed by Kumiho MCP.
decay
Time-decay scoring for memory entries.
embeddings
none
response_cache
Response cache — avoid burning tokens on repeated prompts.
traits
vector
Vector operations — minimal stubs retained for active callers.

Functions§

create_memory
Factory: create the right memory backend from config.
create_memory_with_storage
Factory: create memory with optional storage-provider override.
create_memory_with_storage_and_routes
Factory: create memory with optional storage-provider override and embedding routes.
create_response_cache
Factory: create an optional response cache from config.
effective_memory_backend_name
is_assistant_autosave_key
Legacy auto-save key used for model-authored assistant summaries. These entries are treated as untrusted context and should not be re-injected.
should_skip_autosave_content
Filter known synthetic autosave noise patterns that should not be persisted as user conversation memories.