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.
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.
DecisionInputMessage object { content, role, phase, type } A user message containing input text or images, a developer or system message containing input text, or an assistant message containing output text or refusals. System messages are rendered as developer messages.
A user message containing input text or images, a developer or system message containing input text, or an assistant message containing output text or refusals. System messages are rendered as developer messages.
Text evidence or an ordered list of text and image parts.
Text evidence or an ordered list of text and image parts.
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.
DecisionInputPart = DecisionInputText { text, type, prompt_cache_breakpoint } or DecisionInputImage { image_url, type, detail, prompt_cache_breakpoint } or OutputText { text, type } or Refusal { refusal, 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.
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.