Skip to main content

Module memory

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§

AgentScopedMarkdownMemory
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.
AgentScopedMemory
AuditedMemory
Decorator that wraps a Memory backend with audit logging.
EmbeddingIdentity
EmbeddingSettings
ExportFilter
Filter criteria for bulk memory export (GDPR Art. 20 data portability).
LucidMemory
MarkdownMemory
MarkdownPeer
MemoryBackendProfile
MemoryEntry
A single memory entry
NoneMemory
Explicit no-op memory backend. This backend is used when memory.backend = "none" to disable persistence while keeping the runtime wiring stable.
PolicyEnforcer
Policy enforcer that validates memory operations.
ProceduralMessage
A single message in a conversation trace for procedural memory.
QdrantMemory
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.
RerankConfig
Rerank stage configuration, materialized from canonical memory config. Copy so the engine’s injection config (which embeds one) stays Copy.
ResponseCache
RetrievalConfig
Configuration for the RetrievalPipeline decorator.
RetrievalPipeline
Optional-cache decorator wrapping a Memory backend.
ScannedMemory
Decorator that scans, redacts, and policy-gates durable memory content at the write and recall boundaries.
SqliteMemory

Enums§

MemoryBackendKind
MemoryCategory
Memory categories for organization
RerankStrategy
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.