{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/mintlify/main/json-schema/mintlify-agent-job-request-schema.json",
  "title": "AgentJobRequest",
  "x-generated": "2026-10-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/mintlify-agent-api-openapi.yml#/components/schemas/AgentJobRequest",
  "type": "object",
  "required": [
    "messages"
  ],
  "properties": {
    "messages": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "role": {
            "type": "string",
            "enum": [
              "user",
              "system",
              "assistant"
            ]
          },
          "content": {
            "type": "string"
          }
        }
      }
    },
    "branch": {
      "type": "string"
    },
    "asDraft": {
      "type": "boolean",
      "default": false
    },
    "model": {
      "type": "string",
      "enum": [
        "sonnet",
        "opus"
      ],
      "default": "sonnet"
    }
  }
}