Repository navigation
Inference Gateway: document POST /v1/decisions - #1939
Merged
Merged
Conversation
Drafted by Docsy for case 3588. Signed-off-by: unionai-docsy-agent[bot] <336110417+unionai-docsy-agent[bot]@users.noreply.github.com>
GHA build & deploy previewBuilt by
Updated automatically on every push. |
unionai-docsy-agent
Bot
requested review from
EngHabu,
cosmicbboy,
kumare3 and
samhita-alla
as code owners
November 9, 2026 13:51
Contributor
Author
|
Docsy actions: what Docsy did on this PR, and at whose direction. Docsy adds a line for each.
|
Contributor
There was a problem hiding this comment.
🔵 Needs a closer look
The gateway implementation and API definitions are unavailable, and no endpoint call verifies the request contract or hosted-provider tool-calling compatibility, so gateway-owner confirmation is needed before publication.
No open issues 🎉
What changed in this PR
Documents POST /v1/decisions as a way to ask typed questions through the Inference Gateway, and connects the new guide to existing inference documentation.
Changes:
- Adds a request example, field descriptions, provider requirements, and guidance for local access and gateway updates.
- Links the guide from the gateway overview and provider settings.
- Adds a Union-only link from Decision models, preserving Flyte variant visibility.
| File | Description |
|---|---|
content/user-guide/inference/inference-gateway/providers.md |
Links Answers decisions to the new guide. |
content/user-guide/inference/inference-gateway/decisions.md |
Documents endpoint usage, question kinds, and supported providers. |
content/user-guide/inference/inference-gateway/_index.md |
Adds Decisions to the section overview. |
content/user-guide/inference/decision-models/_index.md |
Adds a Union-only related link to gateway decisions. |
Review effort: Balanced
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed in the product
The October 2026 release notes (#1929) announce structured decisions on the Inference Gateway.
POST /v1/decisionstakes a state and named questions and returns a typed answer for each. TypeSafe models, hosted LLMs, and Union-served vLLM/SGLang apps with Answers decisions turned on can answer these requests. Until now the docs mention the endpoint only once, as the Answers decisions toggle in Providers. Linear DOC-1576 asks for docs on calling the endpoint, linked from Decision models.Changes, page by page
content/user-guide/inference/inference-gateway/decisions.md(Union only, weight 7):curlexample, followed by what to put in each placeholder (gateway endpoint, virtual key, a model thetypesafeprovider allows)flyte proxy app, thenhttp://127.0.0.1:8600), with a link to Use from your laptoptypesafeprovider, or a vLLM/SGLang provider with Answers decisions onmodel,state,questions)noul→ a probability, andchoice→ one of the options, withcriteriamapping each option to a descriptiontypesafe; hosted chat models that support tool calling (the gateway asks through one forced tool call); vLLM/SGLang apps only with Answers decisions on/v1/decisions; if the overview shows an update available, redeployinference-gateway/providers.md: the Answers decisions row now links to the new page.inference-gateway/_index.md: adds a Decisions entry to "In this section".decision-models/_index.md: adds a Related link to the new page. The link is wrapped in{{< variant union >}}because this page builds for both variants and the gateway page is Union only.Evidence
Every claim on the page was checked against Union's internal source (the console's gateway settings, the gateway's provider list, and the gateway API definitions). The page's example request copies the body of the decisions command the console generates. The rules for which providers answer decisions come from the gateway API's own description of the decisions setting. The answer types in the intro (probability, choice, score) come from the console's description of the endpoint and the release notes.
Nothing was run, and no call was made to
/v1/decisions, so none of the endpoint's runtime behavior is confirmed by a call.Left out because it couldn't be verified
scorequestions. The console's example shows onlynoulandchoice. The intro still says an answer can be a score, based on the console's description of the endpoint and the release notes.request_type: decisions, but how the gateway enforces these wasn't confirmed./v1/decisions, and what an older gateway returns for it. The page says only that an older image may lack the endpoint and that redeploying updates it.Open questions for the reviewer
No listed owner covers the Inference Gateway, so these questions aren't addressed to anyone.
/v1/decisionsresponse look like? How is ascorequestion written (itskindand the shape of itscriteria)?elevenlabsandrunway./v1/decisions, and what does an older gateway return for it (a 404)?Pre-flight review
Docsy's reviewer read this draft before it was opened and found 9 problems to fix. The draft was amended for them (2 declined, with evidence the check accepted), and a check of the amendment found nothing left to fix.
Its optional suggestions, which the page doesn't need to be right; take them or not:
content/user-guide/inference/inference-gateway/decisions.mdline 11: The intro says an answer can be "a score", but thekindtable (lines 53–56) documents onlynoulandchoice. A reader can't write a question that returns a score. The page also gives no example response, so a reader can't tell which field holds each answer. Document thescorekind and the response shape, or remove "or a score" until they can be documented.Docsy case 3588: https://docsy.apps.demo.hosted.unionai.cloud/cases/3588
Drafted by Docsy, Union.ai's documentation agent, from the product changes and requests in this case. Review it like any PR; close it if it's not wanted.