Expand description
Token budget tracking and allocation. Token budget management for context assembly.
Structs§
- Budget
Allocation - Divides a total token budget across context zones.
- Token
Budget - Tracks token usage against a maximum budget.
- Zone
Budget Config - Configuration for zone budget percentages.
Functions§
- estimate_
tokens - Estimates token count for a text string. Uses word count * 1.3 as a rough approximation for English text.