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
client.Decisions.New(ctx, body) (*Decision, error)
POST
/decisions
Models
type Decision struct{…}
type DecisionInputImage struct{…}

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

type DecisionInputMessageUnion interface{…}

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

type DecisionInputPartUnion interface{…}

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

type DecisionInputText struct{…}
type DecisionPromptCacheBreakpoint struct{…}

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.