Skip to main content

Module context_budget

Module context_budget 

Source
Expand description

Context window budget management.

Tracks estimated token usage and enforces limits to prevent context overflow. Uses a chars/4 heuristic for token estimation (conservative but fast).

Structs§

ContextBudget
Context budget configuration and enforcement.

Enums§

TrimAction
What kind of trim to apply.