Skip to content
For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to the page URL.
Primary navigation

Decisions

Create a decision
decisions.create(**kwargs) -> Decision { answers, model, usage }
POST
/decisions
Models
class Decision { answers, model, usage }
class DecisionInputImage { 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.

DecisionInputMessage = User{ content, role, type} | Developer{ content, role, type} | System{ content, role, type} | Assistant{ content, role, phase, type}

A user message containing input text, images, or JSON.

DecisionInputPart = DecisionInputText { text, type, prompt_cache_breakpoint } | DecisionInputImage { image_url, type, detail, prompt_cache_breakpoint } | DecisionInputJSON { data, type }

An image provided as a base64 data URL or a publicly accessible HTTP(S) URL. File IDs are not supported.

class DecisionInputText { text, type, prompt_cache_breakpoint }
class DecisionPromptCacheBreakpoint { mode }

Marks the exact end of a reusable prompt prefix. The breakpoint inherits its TTL from the request’s prompt_cache_options.ttl; the boundary is not rounded to a token block.