Snap: choice question
snap_choiceChooses one of 2-255 labeled options for a given state using SubQ's Snap decision model, returning the picked option, a confidence value, and a probability for every option.
Instructions
Ask SubQ's Snap decision model a single Choice question: pick one of 2-255 labelled options for a state. Returns the chosen option, a confidence value, and a probability for every option, under the question name "answer".
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | Optional Snap model id override (default: subq-snap-1.1). | |
| state | Yes | The situation to decide about: text, a JSON object, or a JSON array. | |
| images | No | Up to 4 images for this request. PNG, JPEG, or WebP, base64-encoded with no data: prefix; at most 4 MiB decoded each, 8 MiB in total. Every question in the request sees every image. | |
| options | Yes | Object mapping each option label to a description (string, structured object/array, or null; 2-255 options). | |
| instructions | Yes | What Snap should decide: plain-language text, or structured JSON. |