evaluate_context_window
Ranks key moments by relevance, recency, or balance to fit within a token budget. Excludes noise and includes RETEX to ensure accurate context injection for a task.
Instructions
Evaluate and rank moments for optimal context injection within token budget
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task_id | Yes | Task to build context for | |
| strategy | No | Ranking strategy (default: balanced) | |
| budget_tokens | No | Token budget (default: 2000) | |
| exclude_noise | No | Exclude noisy moments (default: true) | |
| include_retex | No | Include RETEX in context (default: true) |