{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/agentstack-tech/json-schema/agentstack-tech-batch-command-request-schema.json",
  "title": "BatchCommandRequest",
  "description": "Request model for batch commands",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/agentstack-tech-commands-api-openapi.yml#/components/schemas/BatchCommandRequest",
  "properties": {
    "commands": {
      "items": {
        "$ref": "#/$defs/protein_commands__router__CommandRequest"
      },
      "type": "array",
      "title": "Commands"
    },
    "execute_parallel": {
      "type": "boolean",
      "title": "Execute Parallel",
      "default": true
    },
    "fail_fast": {
      "type": "boolean",
      "title": "Fail Fast",
      "default": false
    }
  },
  "type": "object",
  "required": [
    "commands"
  ],
  "$defs": {
    "protein_commands__router__CommandRequest": {
      "properties": {
        "command_type": {
          "type": "string",
          "title": "Command Type"
        },
        "command_name": {
          "type": "string",
          "title": "Command Name"
        },
        "payload": {
          "additionalProperties": true,
          "type": "object",
          "title": "Payload"
        },
        "priority": {
          "type": "integer",
          "title": "Priority",
          "default": 5
        },
        "timeout_ms": {
          "type": "integer",
          "title": "Timeout Ms",
          "default": 30000
        },
        "retry_count": {
          "type": "integer",
          "title": "Retry Count",
          "default": 3
        }
      },
      "type": "object",
      "required": [
        "command_type",
        "command_name",
        "payload"
      ],
      "title": "CommandRequest",
      "description": "Request model for protein commands"
    }
  }
}