Skip to main content

Module context

Module context 

Source

Structs§

ContextBuilder
Builds a context string from prioritized sections within a token budget.
MemoryResult
ContextBuilder: layered context loading with token budget management. Priority order: Identity(0) > Bootstrap(1) > AlwaysOnSkills(2) > AvailableSkills(3) > Memory(4) A single memory result with its relevance score and metadata.

Enums§

ContextSection
A prioritized section of the LLM context prompt.

Functions§

estimate_tokens
Rough token estimator: ~4 chars per token