{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/upstage-ai/main/json-schema/upstage-ai-system-one-response-schema.json",
  "title": "SystemOneResponse",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/upstage-ai-systemone-openapi-generated.yml#/components/schemas/SystemOneResponse",
  "type": "object",
  "properties": {
    "model": {
      "type": "string"
    },
    "answers": {
      "type": "object",
      "additionalProperties": {
        "$ref": "#/$defs/Answer"
      }
    },
    "usage": {
      "type": "object",
      "properties": {
        "input_tokens": {
          "type": "integer"
        },
        "output_tokens": {
          "type": "integer"
        }
      }
    }
  },
  "$defs": {
    "Answer": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "choice",
            "score",
            "noul"
          ]
        },
        "choice": {
          "type": "string"
        },
        "score": {
          "type": "number"
        },
        "legend": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          }
        },
        "noul": {
          "type": "number",
          "minimum": 0,
          "maximum": 1
        },
        "probabilities": {
          "type": "object",
          "additionalProperties": {
            "type": "number"
          }
        },
        "confidence": {
          "type": "number"
        }
      }
    }
  }
}