triage_options
Narrow a long list of options to a shortlist, then decide among survivors. Scores all candidates, keeps the strongest, and returns both the shortlist and discarded items.
Instructions
Narrow a LONG list of options and then decide over the survivors. Use when you have more than about twenty candidates: a choice question loses accuracy past that, so this scores them all, keeps the strongest few, and decides over those. The shortlist and what was discarded are both returned, so the cut is visible.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keep | No | How many to carry into the decision. Default 5, max 20. | |
| state | Yes | The situation: a string, or an object of named facts. | |
| act_at | No | ||
| margin | No | ||
| backend | No | ||
| options | Yes | All candidates (labels or {label, description}). | |
| instruction | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | ||
| margin | No | lead over the runner-up | |
| reason | Yes | why the gate decided that way | |
| backend | Yes | ||
| decision | Yes | act when the winner cleared the gate; escalate when it did not | |
| runner_up | No | ||
| confidence | No | probability on the recommendation | |
| probabilities | Yes | label -> probability, every option the caller offered | |
| recommendation | No | the leading option |