{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/berget-ai/json-schema/berget-ai-system-one-response-schema.json",
  "title": "SystemOneResponse",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/berget-ai-openapi.yml#/components/schemas/SystemOneResponse",
  "type": "object",
  "properties": {
    "model": {
      "type": "string",
      "description": "Public model id"
    },
    "answers": {
      "type": "object",
      "additionalProperties": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "description": "Answer type, matching the question type"
          }
        },
        "required": [
          "type"
        ],
        "additionalProperties": {},
        "description": "The answer to one question. Type-specific fields are returned unchanged:\n\n- **noul** — `noul`: probability (0-1) that the statement is true.\n- **choice** — `choice`: the highest-probability option, `probabilities`: every option mapped to its probability (sums to 1), `confidence`: 0-1, derived from the distribution.\n- **score** — `score`: probability-weighted value across the levels (can land between levels), `legend`: each level index mapped to its description, `probabilities`: per level, `confidence`: 0-1, derived from the distribution."
      },
      "description": "Answers keyed by question id"
    },
    "usage": {
      "type": "object",
      "properties": {
        "input_tokens": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "output_tokens": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        }
      },
      "required": [
        "input_tokens",
        "output_tokens"
      ],
      "additionalProperties": false,
      "description": "Token usage for this request."
    }
  },
  "required": [
    "model",
    "answers",
    "usage"
  ],
  "additionalProperties": false
}