Expand description
Context Window Manager Module
Provides dynamic context window management for different LLM models.
§Context Window Strategy
- For models with context window ≤50k tokens: reserve 20% for output
- For models with context window >50k tokens: reserve fixed 50k tokens for output
§Features
- Model-specific context window sizes
- Token usage tracking (input, output, cache)
- Usage percentage calculation
- Near-limit detection
Structs§
- Context
Window Manager - Context Window Manager for tracking and managing token usage.
Statics§
- MODEL_
CONTEXT_ WINDOWS - Model context window sizes mapping.