{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/berget-ai/json-schema/berget-ai-system-one-request-input-schema.json",
  "title": "SystemOneRequestInput",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/berget-ai-openapi.yml#/components/schemas/SystemOneRequestInput",
  "type": "object",
  "properties": {
    "model": {
      "description": "The System One model to use. Defaults to `Qwen/Qwen3.5-2B`.",
      "type": "string"
    },
    "state": {
      "description": "The application state the questions are asked about"
    },
    "questions": {
      "type": "object",
      "additionalProperties": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "description": "Question type, e.g. `noul`, `choice`, or `score`"
          }
        },
        "required": [
          "type"
        ],
        "additionalProperties": {},
        "description": "A question about the state. Type-specific fields are forwarded unchanged.\n\nAll three types share `type` and `instructions`; `choice` and `score` add `criteria`:\n\n- **noul** — a yes/no question. `instructions` (required): the statement to evaluate. Optional `criteria: { \"true\": ..., \"false\": ... }` describes what yes and no mean.\n- **choice** — pick one option. `instructions` (required) plus `criteria` (required): a map of option to rubric description (use `null` when an option needs no detail). Between 2 and 255 options.\n- **score** — rate the state on an ordered scale. `instructions` (required) plus `criteria` (required): an ordered array of 2-10 level descriptions.\n\n`instructions` may be a string, an object, or an array. Use an object to give the question extra context: put the question in one field and reference data fields by name in backticks."
      },
      "description": "Questions keyed by a caller-chosen id"
    }
  },
  "required": [
    "state",
    "questions"
  ],
  "additionalProperties": {}
}