{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/azure-ai-foundry/json-schema/azure-ai-foundry-decision-response-schema.json",
  "title": "DecisionResponse",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_superseded/azure-ai-foundry-decisions-api-openapi.yml#/components/schemas/DecisionResponse",
  "type": "object",
  "properties": {
    "model": {
      "type": "string",
      "description": "The underlying model (for example microsoft-decision-1), which can differ from the deployment name."
    },
    "answers": {
      "type": "object",
      "description": "Answers keyed by the question names from the request.",
      "additionalProperties": {
        "$ref": "#/$defs/Answer"
      }
    },
    "usage": {
      "type": "object",
      "description": "Token usage. Field names not documented.",
      "additionalProperties": true
    }
  },
  "$defs": {
    "Answer": {
      "type": "object",
      "additionalProperties": true,
      "description": "noul returns a probability from 0 through 1; choice returns the selected option and a probability for every option; score returns the probability-weighted average of the level indexes and a probability for each level.",
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "noul",
            "choice",
            "score"
          ]
        },
        "choice": {
          "type": "string",
          "description": "The selected option (choice questions)."
        }
      }
    }
  }
}