Skip to main content

aivcs_core/memory/
mod.rs

1//! Memory subsystem for agent context, indexing, and retention.
2//!
3//! Provides in-memory indexing of run traces, rationales, diffs, and snapshots
4//! with tag/kind/time filtering, token-budgeted context assembly, and
5//! configurable compaction policies.
6
7pub mod context;
8pub mod decision;
9pub mod error;
10pub mod index;
11pub mod rationale;
12pub mod retention;
13
14pub use context::{assemble_context, ContextBudget, ContextItem, ContextWindow};
15pub use decision::{DecisionRecorder, DecisionRecorderConfig};
16pub use error::{MemoryError, MemoryResult};
17pub use index::{IndexQuery, IndexResult, MemoryEntry, MemoryEntryKind, MemoryIndex};
18pub use rationale::{DecisionRationale, RationaleEntry, RationaleOutcome};
19pub use retention::{compact_index, CompactionPolicy, CompactionResult};