compress_context
Rank, deduplicate, and budget supplied context to retain critical items, reducing noisy input before AI processing.
Instructions
Rank, deduplicate, and budget supplied context while retaining critical items. Use for noisy context; do not expect semantic summarization or instruction promotion.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | No | ||
| context | Yes | ||
| maxTokens | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | ||
| droppedIds | Yes | ||
| diagnostics | Yes | ||
| afterEstimated | Yes | ||
| budgetExceeded | Yes | ||
| beforeEstimated | Yes | ||
| duplicatesRemoved | Yes |