Module memory
Modules§
- agent_
scoped - agent_
scoped_ markdown - Cross-agent path-walk variant for Markdown-backed agents.
- audit
- Audit trail for memory operations.
- backend
- budget
- chunker
- classify
- Memory kind classification for consolidation writes.
- cli
- conflict
- Conflict resolution for memory entries.
- consolidation
- LLM-driven memory consolidation.
- decay
- dedup
- embeddings
- hygiene
- importance
- Heuristic importance scorer for non-LLM paths.
- knowledge_
graph - Knowledge graph for capturing, organizing, and reusing expertise.
- lucid
- markdown
- merge
- none
- normalize
- Score normalization helpers for recall candidates.
- policy
- Policy engine for memory operations.
- policy_
gate - qdrant
- redact
- Category-based redaction for durable memory content.
- rerank
- Query-time rerank machinery for recalled memory candidates.
- response_
cache - Response cache — avoid burning tokens on repeated prompts.
- retrieval
- Optional read-cache decorator over a single backend recall.
- scanned
- Write- and read-boundary content screening for durable memory.
- snapshot
- Memory snapshot — export/import core memories as human-readable Markdown.
- sqlite
- threat
- Content scanning for durable memory entries.
- traits
- vector
Structs§
- Agent
Scoped Markdown Memory - Composed Markdown memory for one agent: own backend plus the resolved peer set. Stores write only to the bound agent; recalls union across own + peers with per-row alias attribution.
- Agent
Scoped Memory - Audited
Memory - Decorator that wraps a
Memorybackend with audit logging. - Embedding
Identity - Embedding
Settings - Export
Filter - Filter criteria for bulk memory export (GDPR Art. 20 data portability).
- Lucid
Memory - Markdown
Memory - Markdown
Peer - Memory
Backend Profile - Memory
Entry - A single memory entry
- None
Memory - Explicit no-op memory backend.
This backend is used when
memory.backend = "none"to disable persistence while keeping the runtime wiring stable. - Policy
Enforcer - Policy enforcer that validates memory operations.
- Procedural
Message - A single message in a conversation trace for procedural memory.
- Qdrant
Memory - Qdrant vector database memory backend. Uses Qdrant’s REST API for vector storage and semantic search. Requires an embedding model_provider for converting text to vectors.
- Rerank
Config - Rerank stage configuration, materialized from canonical memory config.
Copyso the engine’s injection config (which embeds one) staysCopy. - Response
Cache - Retrieval
Config - Configuration for the
RetrievalPipelinedecorator. - Retrieval
Pipeline - Optional-cache decorator wrapping a
Memorybackend. - Scanned
Memory - Decorator that scans, redacts, and policy-gates durable memory content at the write and recall boundaries.
- Sqlite
Memory
Enums§
- Memory
Backend Kind - Memory
Category - Memory categories for organization
- Rerank
Strategy - Advanced rerank strategy.
Constants§
- MEMORY_
CONTEXT_ CLOSE - Closing delimiter for recalled memory injected into provider context.
- MEMORY_
CONTEXT_ OPEN - Opening delimiter for recalled memory injected into provider context.
Traits§
- Memory
- Core memory trait — implement for any persistence backend
Functions§
- backend_
kind_ from_ dotted - Extract the backend kind from a V3 dotted reference (
<kind>.<alias>). Bare names ("sqlite") are returned as-is. Returned lowercase. - classify_
memory_ backend - create_
memory - create_
memory_ for_ agent - Build the per-agent memory wrapper for
agent_alias. - create_
memory_ for_ migration - create_
memory_ from_ config - Construct memory from the canonical loaded configuration.
- create_
memory_ with_ storage_ and_ routes - create_
response_ cache - Factory: create an optional response cache from config.
- default_
memory_ backend_ key - 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.
- is_
recent_ recall_ query - Returns true when a recall query should be interpreted as recent/time-only recall.
- is_
user_ autosave_ key - memory_
backend_ profile - normalize_
recent_ recall_ query - Normalizes recent/time-only recall queries to the backend-neutral empty query.
- resolve_
embedding_ settings - selectable_
memory_ backends - should_
skip_ autosave_ content - Filter known synthetic autosave noise patterns that should not be persisted as user conversation memories.