Expand description
ContextEngine: search, recency decay, and token-budget assembly.
Core business logic: assembly, scoring, and snapshot management.
Structs§
- Context
Engine - The core context engine that coordinates storage, search, and assembly.
- Save
Options - Options for saving a snapshot entry.
Constants§
- MATCH_
ALL_ QUERY - Well-defined query constant that means “match all entries” in the Searcher trait.
Functions§
- estimate_
tokens - Estimate token count using whitespace heuristic (1 token ≈ 4 chars).