decide_choice
Select the best candidate from provided options by evaluating context against criteria, returning calibrated probabilities and abstaining when confidence is low.
Instructions
Select the single best candidate for the state, with calibrated probabilities.
state: dict of context to evaluate. candidates: the allowed options (strings). criteria: how to judge them (plain string or mapping). allow_abstain: when the best confidence is too low, value becomes UNKNOWN and tentative_value keeps the raw argmax. Returns ChoiceDecision JSON.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| state | Yes | ||
| criteria | No | ||
| candidates | Yes | ||
| allow_abstain | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |