Skip to main content

Module engine

Module engine 

Source
Expand description

ContextEngine: search, recency decay, and token-budget assembly. Core business logic: assembly, scoring, and snapshot management.

Structs§

ContextEngine
The core context engine that coordinates storage, search, and assembly.
SaveOptions
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).