{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/docspeed-ai/json-schema/docspeed-ai-synthesize-request-schema.json",
  "title": "SynthesizeRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/docspeed-ai-generation-api-openapi.yml#/components/schemas/SynthesizeRequest",
  "properties": {
    "inputs": {
      "items": {
        "$ref": "#/$defs/SynthesizeInput"
      },
      "type": "array",
      "title": "Inputs"
    },
    "prompt": {
      "type": "string",
      "title": "Prompt"
    },
    "execution_mode": {
      "type": "string",
      "enum": [
        "async",
        "sync"
      ],
      "title": "Execution Mode",
      "default": "sync"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "prompt"
  ],
  "$defs": {
    "SynthesizeInput": {
      "properties": {
        "file_id": {
          "type": "string",
          "title": "File Id"
        },
        "role": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Role"
        },
        "instructions": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Instructions"
        }
      },
      "type": "object",
      "required": [
        "file_id"
      ],
      "title": "SynthesizeInput"
    }
  }
}