Skip to main content

Module context

Module context 

Source

Structs§

ContextUsage
Context usage stats.

Functions§

context_usage
Estimate total context usage for a message list.
estimate_tokens
Fast approximate token counting (~4 chars per token for English).
mask_observations
Replace old tool result content with lightweight placeholders.