Decisions
Create a decision
Models
Decision object { answers, model, usage }
answers: array of Predicate { name, probability, type } or Choice { choice, confidence, name, 2 more } or Score { confidence, name, probabilities, 2 more } or Refusal { name, type } Answers in question order. Any question can return a refusal instead of an answer; other questions can still receive answers. A refusal has type: "refusal" and the question’s name, or null if it was unnamed.
minItems0maxItems2000
Answers in question order. Any question can return a refusal instead of an answer; other questions can still receive answers. A refusal has type: "refusal" and the question’s name, or null if it was unnamed.
Choice object { choice, confidence, name, 2 more }
DecisionInputImage object { image_url, type, detail, prompt_cache_breakpoint } An image provided as a base64 data URL or a publicly accessible HTTP(S) URL. File IDs are not supported.
An image provided as a base64 data URL or a publicly accessible HTTP(S) URL. File IDs are not supported.
A base64-encoded image in a data URL or a publicly accessible HTTP(S) image URL.
detail: optional "low" or "high" or "auto" or "original" or null (default: "auto")The image detail level, using the selected model’s image profile. Defaults to auto.
The image detail level, using the selected model’s image profile. Defaults to auto.
DecisionInputMessage = User { content, role, type } or Developer { content, role, type } or System { content, role, type } or Assistant { content, role, phase, type } A user message containing input text, images, or JSON.
A user message containing input text, images, or JSON.
User object { content, role, type } A user message containing input text, images, or JSON.
A user message containing input text, images, or JSON.
A text string or an ordered list of text, image, and JSON parts.
A text string or an ordered list of text, image, and JSON parts.
minItems0maxItems16384
DecisionInputText object { text, type, prompt_cache_breakpoint }
DecisionInputImage object { image_url, type, detail, prompt_cache_breakpoint } An image provided as a base64 data URL or a publicly accessible HTTP(S) URL. File IDs are not supported.
An image provided as a base64 data URL or a publicly accessible HTTP(S) URL. File IDs are not supported.
A base64-encoded image in a data URL or a publicly accessible HTTP(S) image URL.
detail: optional "low" or "high" or "auto" or "original" or null (default: "auto")The image detail level, using the selected model’s image profile. Defaults to auto.
The image detail level, using the selected model’s image profile. Defaults to auto.
Developer object { content, role, type } A developer message containing input text.
A developer message containing input text.
A text string or an ordered list of input text parts.
A text string or an ordered list of input text parts.
System object { content, role, type } A system message containing input text.
A system message containing input text.
A text string or an ordered list of input text parts.
A text string or an ordered list of input text parts.
Assistant object { content, role, phase, type } An assistant message containing output text or refusals.
An assistant message containing output text or refusals.
content: string or array of OutputText { text, type } or Refusal { refusal, type } A text string or an ordered list of output text and refusal parts.
A text string or an ordered list of output text and refusal parts.
DecisionInputPart = DecisionInputText { text, type, prompt_cache_breakpoint } or DecisionInputImage { image_url, type, detail, prompt_cache_breakpoint } or DecisionInputJSON { data, type } An image provided as a base64 data URL or a publicly accessible HTTP(S) URL. File IDs are not supported.
An image provided as a base64 data URL or a publicly accessible HTTP(S) URL. File IDs are not supported.
DecisionInputText object { text, type, prompt_cache_breakpoint }
DecisionInputImage object { image_url, type, detail, prompt_cache_breakpoint } An image provided as a base64 data URL or a publicly accessible HTTP(S) URL. File IDs are not supported.
An image provided as a base64 data URL or a publicly accessible HTTP(S) URL. File IDs are not supported.
A base64-encoded image in a data URL or a publicly accessible HTTP(S) image URL.
detail: optional "low" or "high" or "auto" or "original" or null (default: "auto")The image detail level, using the selected model’s image profile. Defaults to auto.
The image detail level, using the selected model’s image profile. Defaults to auto.