Skip to main content

Module context_engine

Module context_engine 

Source
Expand description

Context engine module - Orchestrates context memory system

Re-exports§

pub use retrieval_planner::RetrievalPlanner;
pub use retrieval_planner::RetrievalPlan;
pub use tier_manager::TierManager;
pub use tier_manager::TierManagerConfig;
pub use tier_manager::TierStats;
pub use context_builder::ContextBuilder;
pub use context_builder::ContextBuilderConfig;
pub use orchestrator::ContextOrchestrator;
pub use orchestrator::OrchestratorConfig;
pub use orchestrator::SessionStats;
pub use orchestrator::CleanupStats;
pub use smart_retrieval::SmartRetrieval;
pub use smart_retrieval::SmartRetrievalConfig;
pub use smart_retrieval::RetrievalResult;
pub use smart_retrieval::RetrievalStrategy;

Modules§

context_builder
Builds optimal context from multiple memory sources
orchestrator
Main orchestrator that coordinates all memory subsystems
retrieval_planner
smart_retrieval
Smart retrieval with two-tier context optimization
tier_manager
Manages the three-tier memory system with robust persistence and indexing

Functions§

create_default_orchestrator
Create a Context Orchestrator with limits derived from the model’s context window. Pass ctx_size from Config.ctx_size — all token budgets are derived from it automatically.