Answer questions about a text with a decision model.
Calls a model of type decision (Microsoft Decision 1): it reads input and answers each
question with probabilities instead of text. The body is the OpenAI Decisions format, not
the request body of Microsoft Foundry's documentation; see LlmDecisionRequest. Billed by
input and output tokens like a text model.
apiKeyX-API-Key<token>API key issued in the Galilea settings.
application/json- body
Questions about a text, for a model of type decision. The format is the OpenAI Decisions
format: the text in input, the questions as a list. The request body of Microsoft
Foundry's documentation (state, questions as a map of names to questions, criteria)
is not accepted and answers 400.
model*stringThe key of a model of type decision.
input*stringThe text the questions are about, such as a support ticket or a document.
questions*array<>1 <= items <= 128One answer per question, in the order of the questions.
application/json- response
One answer per question, in the order of the questions. predicate: probability of yes.
choice: the chosen option in choice, probabilities per option, confidence. score:
score, the expected level index from 0, probabilities per level, confidence. refusal:
the model declined the question.
model*stringanswers*array<>usage*Tokens, billed like a text model.
curl -X POST "https://example.com/llm/decisions" \ -H "Content-Type: application/json" \ -d '{ "model": "microsoft-decision-1", "input": "The API returns 500 on every call since this morning. Checkout is down for all EU customers.", "questions": [ { "type": "choice", "name": "team", "instructions": "Which team should handle this ticket?", "choices": [ { "value": "billing", "description": "Charges, invoices, and refunds" }, { "value": "engineering", "description": "Bugs, errors, and outages" } ] }, { "type": "predicate", "name": "urgent", "instructions": "Is this urgent?" }, { "type": "score", "name": "severity", "instructions": "How severe is this incident?", "levels": [ { "label": "Minor" }, { "label": "Major" }, { "label": "Critical" } ] } ] }'{ "model": "microsoft-decision-1", "answers": [ { "type": "choice", "name": "team", "choice": "engineering", "probabilities": [ { "value": "billing", "probability": 0.0013 }, { "value": "engineering", "probability": 0.9987 } ], "confidence": 0.9977 }, { "type": "predicate", "name": "urgent", "probability": 0.999 }, { "type": "score", "name": "severity", "score": 1.98, "probabilities": [ { "value": 0, "label": "Minor", "probability": 0.0003 }, { "value": 1, "label": "Major", "probability": 0.023 }, { "value": 2, "label": "Critical", "probability": 0.9767 } ], "confidence": 0.969 } ], "usage": { "input_tokens": 116, "output_tokens": 3, "total_tokens": 119 }}