{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/agentstack-tech/json-schema/agentstack-tech-batch-command-response-schema.json",
  "title": "BatchCommandResponse",
  "description": "Response model for batch commands (Philosophy v0.1.2)",
  "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/BatchCommandResponse",
  "properties": {
    "success": {
      "type": "boolean",
      "title": "Success"
    },
    "total_commands": {
      "type": "integer",
      "title": "Total Commands"
    },
    "successful_commands": {
      "type": "integer",
      "title": "Successful Commands"
    },
    "failed_commands": {
      "type": "integer",
      "title": "Failed Commands"
    },
    "results": {
      "items": {
        "$ref": "#/$defs/protein_commands__router__CommandResponse"
      },
      "type": "array",
      "title": "Results"
    },
    "total_execution_time_ms": {
      "type": "number",
      "title": "Total Execution Time Ms"
    }
  },
  "type": "object",
  "required": [
    "success",
    "total_commands",
    "successful_commands",
    "failed_commands",
    "results",
    "total_execution_time_ms"
  ],
  "$defs": {
    "protein_commands__router__CommandResponse": {
      "properties": {
        "success": {
          "type": "boolean",
          "title": "Success"
        },
        "command_uuid": {
          "type": "string",
          "title": "Command Uuid"
        },
        "status": {
          "type": "string",
          "title": "Status"
        },
        "result": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Result"
        },
        "error": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Error"
        },
        "execution_time_ms": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Execution Time Ms"
        },
        "warnings": {
          "anyOf": [
            {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Warnings"
        }
      },
      "type": "object",
      "required": [
        "success",
        "command_uuid",
        "status"
      ],
      "title": "CommandResponse",
      "description": "Response model for protein commands (Philosophy v0.1.2)"
    }
  }
}