do-memory-core 0.1.31

Core episodic learning system for AI agents with pattern extraction, reward scoring, and dual storage backend
Documentation
//! Episodic memory management components.
//!
//! This module provides tools for managing episodic memory storage, including
//! capacity constraints and eviction policies based on the GENESIS research.
//!
//! # Components
//!
//! - [`CapacityManager`]: Capacity-constrained episodic storage with eviction
//!
//! # Examples
//!
//! ```no_run
//! use do_memory_core::episodic::{CapacityManager, EvictionPolicy};
//! use do_memory_core::{Episode, TaskContext, TaskType};
//!
//! let manager = CapacityManager::new(1000, EvictionPolicy::RelevanceWeighted);
//!
//! let episodes = vec![/* ... */];
//! if !manager.can_store(episodes.len()) {
//!     let to_evict = manager.evict_if_needed(&episodes);
//!     println!("Need to evict {} episodes", to_evict.len());
//! }
//! ```

pub mod capacity;

pub use capacity::{CapacityManager, EvictionPolicy};