keep_context
Evaluate context items against your goal and budget to decide which to retain verbatim, dropping the rest in a single call.
Instructions
Decide which pieces of context still earn their place, in one call.
Nothing is rewritten or summarised. Each item is kept verbatim or dropped, because a summary silently loses the exact path or error you needed later.
items: the context pieces, usually tool calls and their results. goal: what the agent is trying to finish. budget: the share to keep when scores are close. 0.5 keeps half.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| goal | Yes | ||
| items | Yes | ||
| budget | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |