mentedb_context/lib.rs
1//! MenteDB Context: attention aware context assembly engine.
2//!
3//! This crate provides:
4//! - Token-budget-aware context packing
5//! - Attention-pattern-aware ordering (U-curve optimization)
6//! - Delta-aware serving (only send what changed)
7//! - Token-efficient serialization formats
8
9/// Core context assembly logic.
10pub mod assembler;
11/// Token budget tracking and allocation.
12pub mod budget;
13/// Delta aware serving (only send what changed).
14pub mod delta;
15/// Attention zone layout and scored memory ranking.
16pub mod layout;
17/// Serialization formats for context output.
18pub mod serializer;
19
20pub use assembler::{
21 AssemblyConfig, AssemblyMetadata, ContextAssembler, ContextWindow, OutputFormat,
22};
23pub use budget::{BudgetAllocation, TokenBudget, ZoneBudgetConfig};
24pub use delta::{DeltaResult, DeltaTracker};
25pub use layout::{AttentionZone, ContextBlock, ContextLayout, ScoredMemory, ZoneThresholds};
26pub use serializer::{CompactFormat, ContextSerializer, DeltaFormat, StructuredFormat};