Skip to main content

Module memory

Module memory 

Source
Expand description

Memory subsystem for agent context, indexing, and retention.

Provides in-memory indexing of run traces, rationales, diffs, and snapshots with tag/kind/time filtering, token-budgeted context assembly, and configurable compaction policies.

Re-exports§

pub use context::assemble_context;
pub use context::ContextBudget;
pub use context::ContextItem;
pub use context::ContextWindow;
pub use decision::DecisionRecorder;
pub use decision::DecisionRecorderConfig;
pub use error::MemoryError;
pub use error::MemoryResult;
pub use index::IndexQuery;
pub use index::IndexResult;
pub use index::MemoryEntry;
pub use index::MemoryEntryKind;
pub use index::MemoryIndex;
pub use rationale::DecisionRationale;
pub use rationale::RationaleEntry;
pub use rationale::RationaleOutcome;
pub use retention::compact_index;
pub use retention::CompactionPolicy;
pub use retention::CompactionResult;

Modules§

context
Token-budgeted context assembly from memory entries.
decision
Decision Recording and Learning — EPIC5 Phase 1
error
Error types for the memory subsystem.
index
In-memory index for memory entries with tag, kind, and time filtering.
rationale
Decision rationale capture for agent reasoning traces.
retention
Compaction policies for pruning stale or low-value memory entries.