Modules§
- agent_
scoped - Runtime memory wrapper bound to one agent.
- agent_
scoped_ markdown - Cross-agent path-walk variant for Markdown-backed agents.
- audit
- Audit trail for memory operations.
- backend
- chunker
- cli
- conflict
- Conflict resolution for memory entries.
- consolidation
- LLM-driven memory consolidation.
- decay
- embeddings
- hygiene
- importance
- Heuristic importance scorer for non-LLM paths.
- knowledge_
graph - Knowledge graph for capturing, organizing, and reusing expertise.
- lucid
- markdown
- none
- policy
- Policy engine for memory operations.
- qdrant
- response_
cache - Response cache — avoid burning tokens on repeated prompts.
- retrieval
- Multi-stage retrieval pipeline.
- snapshot
- Memory snapshot — export/import core memories as human-readable Markdown.
- sqlite
- 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 - A
Memoryimpl that scopes every read and write to a bound agent’s UUID + a resolved cross-agent allowlist. - Audited
Memory - Decorator that wraps a
Memorybackend with audit logging. - Export
Filter - Filter criteria for bulk memory export (GDPR Art. 20 data portability).
- Lucid
Memory - Markdown
Memory - Markdown-based memory — plain files as source of truth
- Markdown
Peer - Resolved Markdown-backed peer entry: the sibling agent’s alias plus
a
MarkdownMemorypointed at that sibling’s workspace dir. - Memory
Backend Profile - Memory
Entry - A single memory entry
- None
Memory - Explicit no-op memory backend.
- 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.
- Response
Cache - Two-tier response cache: in-memory LRU (hot) + SQLite (warm).
- Retrieval
Config - Multi-stage retrieval pipeline configuration.
- Retrieval
Pipeline - Multi-stage retrieval pipeline wrapping a
Memorybackend. - Sqlite
Memory - SQLite-backed persistent memory — the brain
Enums§
- Memory
Backend Kind - Memory
Category - Memory categories for organization
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 - Factory: create the right memory backend from config
- create_
memory_ for_ agent - Build the per-agent memory wrapper for
agent_alias. - create_
memory_ for_ migration - create_
memory_ with_ storage_ and_ routes - Factory: create memory with a resolved active storage backend and embedding 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 - Auto-save key used for raw user messages captured per-turn. Re-injecting these into build_context causes exponential bloat: each recalled entry contains prior generations’ context verbatim, growing unboundedly. Consolidated knowledge is already promoted to Core/Daily entries.
- memory_
backend_ profile - normalize_
recent_ recall_ query - Normalizes recent/time-only recall queries to the backend-neutral empty query.
- selectable_
memory_ backends - should_
skip_ autosave_ content - Filter known synthetic autosave noise patterns that should not be persisted as user conversation memories.