Decisions
A decision call sends a state to evaluate and a set of named questions. The model returns one typed answer for each question, so your agent reads a probability, an option, or a score instead of parsing free text. Decisions use the jev-1-13-0 model.
Make a request
Send POST ${ASTRO_GATEWAY_URL}/v1/decisions with ASTRO_GATEWAY_API_KEY as a bearer token. The OpenAI SDKs have no decisions method, so use a plain HTTP client.
Request fields
Each question takes a kind, instructions, and, for some kinds, criteria:
Response
The response carries answers, keyed by the question names you sent:
noul:valueis the probability that the answer is yes, from 0 to 1.choice:valueis the chosen option name.probabilitiesgives the weight of every option.score:valueis the expected level, where 0 is the firstcriteriaentry.legendmaps each level back to its description.
An agent deployed before decision models launched can’t call them yet. The gateway rejects its key because the key doesn’t allow the provider. Redeploy the agent to get a key that allows decisions.
Errors
A malformed question returns 400 with a message that names the question and the problem, such as a choice question with no criteria. Chat, embeddings, and the Responses API return an error for decision models. See Errors and limits for status codes the whole gateway shares.
Next steps
- Supported models: every model id the gateway accepts
- Chat completions: call a chat model