Snap: decide (typed questions over a state)
snap_decideGet typed, probabilistic answers to choice, score, and true/false questions about text, JSON, or images in one call, enabling routing, triage, moderation, and risk scoring.
Instructions
Ask SubQ's Snap decision model one or more typed questions (choice, score and/or noul) about a state in a single call. Returns typed answers with probabilities. The state may be text or structured JSON, and up to 4 images may accompany it; every question sees the state and every image.
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. | |
| questions | Yes | Map of question name (up to 100 characters) to typed question; 1-128 questions. Each question has a type (choice | score | noul), instructions, and criteria: choice = object of option label -> description (string, structured object/array, or null; 2-255 options); score = array of 2-10 ordered level descriptions; noul = optional object of true/false descriptions. Instructions may be text or structured JSON. |