{
  "openapi": "3.1.0",
  "info": {
    "title": "Redbelt HTTP API",
    "version": "1.0.0"
  },
  "paths": {
    "/api/v1/models": {
      "get": {
        "tags": [
          "HTTP API"
        ],
        "summary": "List Models",
        "operationId": "list_models_api_v1_models_get",
        "parameters": [
          {
            "name": "X-Redbelt-Organization-ID",
            "in": "header",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "uuid"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Redbelt-Organization-Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PublicModel"
                  },
                  "title": "Response List Models Api V1 Models Get"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ]
      }
    },
    "/api/v1/inference/requests": {
      "post": {
        "tags": [
          "HTTP API"
        ],
        "summary": "Submit Inference",
        "operationId": "submit_inference_api_v1_inference_requests_post",
        "parameters": [
          {
            "name": "X-Redbelt-Organization-ID",
            "in": "header",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "uuid"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Redbelt-Organization-Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InferenceInput"
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicExecution"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ]
      }
    },
    "/api/v1/inference/requests/{request_id}": {
      "get": {
        "tags": [
          "HTTP API"
        ],
        "summary": "Get Inference",
        "operationId": "get_inference_api_v1_inference_requests__request_id__get",
        "parameters": [
          {
            "name": "request_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Request Id"
            }
          },
          {
            "name": "wait",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number",
              "maximum": 30,
              "minimum": 0,
              "description": "Seconds to hold the request while the execution is queued or running. It returns as soon as the status changes to anything else, or with the current snapshot when the time is up.",
              "default": 0,
              "title": "Wait"
            },
            "description": "Seconds to hold the request while the execution is queued or running. It returns as soon as the status changes to anything else, or with the current snapshot when the time is up."
          },
          {
            "name": "X-Redbelt-Organization-ID",
            "in": "header",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "uuid"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Redbelt-Organization-Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicExecution"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ]
      }
    },
    "/api/v1/inference/requests/{request_id}/cancel": {
      "post": {
        "tags": [
          "HTTP API"
        ],
        "summary": "Cancel Inference",
        "operationId": "cancel_inference_api_v1_inference_requests__request_id__cancel_post",
        "parameters": [
          {
            "name": "request_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Request Id"
            }
          },
          {
            "name": "X-Redbelt-Organization-ID",
            "in": "header",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "uuid"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Redbelt-Organization-Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicExecution"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ]
      }
    },
    "/api/v1/agents": {
      "get": {
        "tags": [
          "HTTP API"
        ],
        "summary": "List Agents",
        "operationId": "list_agents_api_v1_agents_get",
        "parameters": [
          {
            "name": "X-Redbelt-Organization-ID",
            "in": "header",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "uuid"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Redbelt-Organization-Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PublicDefinition"
                  },
                  "title": "Response List Agents Api V1 Agents Get"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ]
      }
    },
    "/api/v1/agents/{agent_id}": {
      "get": {
        "tags": [
          "HTTP API"
        ],
        "summary": "Get Agent",
        "operationId": "get_agent_api_v1_agents__agent_id__get",
        "parameters": [
          {
            "name": "agent_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Agent Id"
            }
          },
          {
            "name": "X-Redbelt-Organization-ID",
            "in": "header",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "uuid"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Redbelt-Organization-Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicDefinition"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ]
      }
    },
    "/api/v1/agents/{agent_id}/runs": {
      "post": {
        "tags": [
          "HTTP API"
        ],
        "summary": "Run Agent",
        "operationId": "run_agent_api_v1_agents__agent_id__runs_post",
        "parameters": [
          {
            "name": "agent_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Agent Id"
            }
          },
          {
            "name": "X-Redbelt-Organization-ID",
            "in": "header",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "uuid"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Redbelt-Organization-Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AgentInput"
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicExecution"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ]
      }
    },
    "/api/v1/workflows": {
      "get": {
        "tags": [
          "HTTP API"
        ],
        "summary": "List Workflows",
        "operationId": "list_workflows_api_v1_workflows_get",
        "parameters": [
          {
            "name": "X-Redbelt-Organization-ID",
            "in": "header",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "uuid"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Redbelt-Organization-Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PublicDefinition"
                  },
                  "title": "Response List Workflows Api V1 Workflows Get"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ]
      }
    },
    "/api/v1/workflows/{workflow_id}": {
      "get": {
        "tags": [
          "HTTP API"
        ],
        "summary": "Get Workflow",
        "operationId": "get_workflow_api_v1_workflows__workflow_id__get",
        "parameters": [
          {
            "name": "workflow_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Workflow Id"
            }
          },
          {
            "name": "X-Redbelt-Organization-ID",
            "in": "header",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "uuid"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Redbelt-Organization-Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicDefinition"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ]
      }
    },
    "/api/v1/workflows/{workflow_id}/runs": {
      "post": {
        "tags": [
          "HTTP API"
        ],
        "summary": "Run Workflow",
        "operationId": "run_workflow_api_v1_workflows__workflow_id__runs_post",
        "parameters": [
          {
            "name": "workflow_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Workflow Id"
            }
          },
          {
            "name": "X-Redbelt-Organization-ID",
            "in": "header",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "uuid"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Redbelt-Organization-Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkflowInput"
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicExecution"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ]
      }
    },
    "/api/v1/executions/{kind}/{execution_id}": {
      "get": {
        "tags": [
          "HTTP API"
        ],
        "summary": "Get Execution",
        "operationId": "get_execution_api_v1_executions__kind___execution_id__get",
        "parameters": [
          {
            "name": "kind",
            "in": "path",
            "required": true,
            "schema": {
              "enum": [
                "agent",
                "workflow"
              ],
              "type": "string",
              "title": "Kind"
            }
          },
          {
            "name": "execution_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Execution Id"
            }
          },
          {
            "name": "wait",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number",
              "maximum": 30,
              "minimum": 0,
              "description": "Seconds to hold the request while the execution is queued or running. It returns as soon as the status changes to anything else, or with the current snapshot when the time is up.",
              "default": 0,
              "title": "Wait"
            },
            "description": "Seconds to hold the request while the execution is queued or running. It returns as soon as the status changes to anything else, or with the current snapshot when the time is up."
          },
          {
            "name": "X-Redbelt-Organization-ID",
            "in": "header",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "uuid"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Redbelt-Organization-Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicExecution"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ]
      }
    },
    "/api/v1/executions/{kind}/{execution_id}/cancel": {
      "post": {
        "tags": [
          "HTTP API"
        ],
        "summary": "Cancel Execution",
        "operationId": "cancel_execution_api_v1_executions__kind___execution_id__cancel_post",
        "parameters": [
          {
            "name": "kind",
            "in": "path",
            "required": true,
            "schema": {
              "enum": [
                "agent",
                "workflow"
              ],
              "type": "string",
              "title": "Kind"
            }
          },
          {
            "name": "execution_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Execution Id"
            }
          },
          {
            "name": "X-Redbelt-Organization-ID",
            "in": "header",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "uuid"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Redbelt-Organization-Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicExecution"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ]
      }
    },
    "/api/v1/executions/{kind}/{execution_id}/artifacts": {
      "get": {
        "tags": [
          "HTTP API"
        ],
        "summary": "Execution Artifacts",
        "operationId": "execution_artifacts_api_v1_executions__kind___execution_id__artifacts_get",
        "parameters": [
          {
            "name": "kind",
            "in": "path",
            "required": true,
            "schema": {
              "enum": [
                "agent",
                "workflow"
              ],
              "type": "string",
              "title": "Kind"
            }
          },
          {
            "name": "execution_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Execution Id"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 500,
              "minimum": 1,
              "default": 100,
              "title": "Limit"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 100000,
              "minimum": 0,
              "default": 0,
              "title": "Offset"
            }
          },
          {
            "name": "X-Redbelt-Organization-ID",
            "in": "header",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "uuid"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Redbelt-Organization-Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PublicArtifact"
                  },
                  "title": "Response Execution Artifacts Api V1 Executions  Kind   Execution Id  Artifacts Get"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ]
      }
    },
    "/api/v1/executions/{kind}/{execution_id}/artifacts/{artifact_id}": {
      "get": {
        "tags": [
          "HTTP API"
        ],
        "summary": "Download Artifact",
        "operationId": "download_artifact_api_v1_executions__kind___execution_id__artifacts__artifact_id__get",
        "parameters": [
          {
            "name": "kind",
            "in": "path",
            "required": true,
            "schema": {
              "enum": [
                "agent",
                "workflow"
              ],
              "type": "string",
              "title": "Kind"
            }
          },
          {
            "name": "execution_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Execution Id"
            }
          },
          {
            "name": "artifact_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Artifact Id"
            }
          },
          {
            "name": "X-Redbelt-Organization-ID",
            "in": "header",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "uuid"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Redbelt-Organization-Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Authenticated artifact bytes",
            "content": {
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ]
      }
    },
    "/api/v1/waits/{wait_id}": {
      "get": {
        "tags": [
          "HTTP API"
        ],
        "summary": "Get Wait",
        "operationId": "get_wait_api_v1_waits__wait_id__get",
        "parameters": [
          {
            "name": "wait_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Wait Id"
            }
          },
          {
            "name": "X-Redbelt-Organization-ID",
            "in": "header",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "uuid"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Redbelt-Organization-Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicWait"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ]
      }
    },
    "/api/v1/waits/{wait_id}/respond": {
      "post": {
        "tags": [
          "HTTP API"
        ],
        "summary": "Respond Wait",
        "operationId": "respond_wait_api_v1_waits__wait_id__respond_post",
        "parameters": [
          {
            "name": "wait_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Wait Id"
            }
          },
          {
            "name": "X-Redbelt-Organization-ID",
            "in": "header",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "uuid"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Redbelt-Organization-Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicWaitResponse"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicWait"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ]
      }
    },
    "/api/files/uploads/start": {
      "post": {
        "tags": [
          "HTTP API"
        ],
        "summary": "Start Upload",
        "operationId": "start_upload_api_files_uploads_start_post",
        "parameters": [
          {
            "name": "X-Redbelt-Organization-ID",
            "in": "header",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "uuid"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Redbelt-Organization-Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/StartUploadRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StartUploadResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ]
      }
    },
    "/api/files/uploads/{upload_id}/part/{part_number}": {
      "put": {
        "tags": [
          "HTTP API"
        ],
        "summary": "Upload Part",
        "operationId": "upload_part_api_files_uploads__upload_id__part__part_number__put",
        "parameters": [
          {
            "name": "upload_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "description": "ID of the upload object",
              "title": "Upload Id"
            },
            "description": "ID of the upload object"
          },
          {
            "name": "part_number",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "The part number being uploaded (1-based indexing)",
              "title": "Part Number"
            },
            "description": "The part number being uploaded (1-based indexing)"
          },
          {
            "name": "X-Redbelt-Organization-ID",
            "in": "header",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "uuid"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Redbelt-Organization-Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UploadPartResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ]
      }
    },
    "/api/files/uploads/{upload_id}/finish": {
      "post": {
        "tags": [
          "HTTP API"
        ],
        "summary": "Finish Upload",
        "operationId": "finish_upload_api_files_uploads__upload_id__finish_post",
        "parameters": [
          {
            "name": "upload_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "description": "ID of the upload object",
              "title": "Upload Id"
            },
            "description": "ID of the upload object"
          },
          {
            "name": "X-Redbelt-Organization-ID",
            "in": "header",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "uuid"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Redbelt-Organization-Id"
            }
          }
        ],
        "responses": {
          "202": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FinishUploadResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ]
      }
    },
    "/api/files/uploads/{upload_id}": {
      "delete": {
        "tags": [
          "HTTP API"
        ],
        "summary": "Abort Upload",
        "operationId": "abort_upload_api_files_uploads__upload_id__delete",
        "parameters": [
          {
            "name": "upload_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "description": "ID of the incomplete upload object",
              "title": "Upload Id"
            },
            "description": "ID of the incomplete upload object"
          },
          {
            "name": "X-Redbelt-Organization-ID",
            "in": "header",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "uuid"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Redbelt-Organization-Id"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ]
      },
      "get": {
        "tags": [
          "HTTP API"
        ],
        "summary": "Get Upload Session",
        "operationId": "get_upload_session_api_files_uploads__upload_id__get",
        "parameters": [
          {
            "name": "upload_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "description": "ID of the upload object",
              "title": "Upload Id"
            },
            "description": "ID of the upload object"
          },
          {
            "name": "X-Redbelt-Organization-ID",
            "in": "header",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "uuid"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Redbelt-Organization-Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UploadSession"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ]
      }
    },
    "/api/files/{upload_id}": {
      "get": {
        "tags": [
          "HTTP API"
        ],
        "summary": "Get Upload",
        "operationId": "get_upload_api_files__upload_id__get",
        "parameters": [
          {
            "name": "upload_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "description": "ID of the upload object",
              "title": "Upload Id"
            },
            "description": "ID of the upload object"
          },
          {
            "name": "X-Redbelt-Organization-ID",
            "in": "header",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "uuid"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Redbelt-Organization-Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Upload"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ]
      }
    }
  },
  "components": {
    "securitySchemes": {
      "BearerAuth": {
        "type": "http",
        "scheme": "bearer"
      }
    },
    "schemas": {
      "HTTPValidationError": {
        "properties": {
          "detail": {
            "items": {
              "$ref": "#/components/schemas/ValidationError"
            },
            "type": "array",
            "title": "Detail"
          }
        },
        "type": "object",
        "title": "HTTPValidationError"
      },
      "ValidationError": {
        "properties": {
          "loc": {
            "items": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "integer"
                }
              ]
            },
            "type": "array",
            "title": "Location"
          },
          "msg": {
            "type": "string",
            "title": "Message"
          },
          "type": {
            "type": "string",
            "title": "Error Type"
          },
          "input": {
            "title": "Input"
          },
          "ctx": {
            "type": "object",
            "title": "Context"
          }
        },
        "type": "object",
        "required": [
          "loc",
          "msg",
          "type"
        ],
        "title": "ValidationError"
      },
      "Upload": {
        "properties": {
          "upload_id": {
            "type": "string",
            "format": "uuid",
            "title": "Upload Id",
            "description": "Unique identifier for the uploaded file"
          },
          "organization_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Organization Id",
            "description": "Canonical organization that owns the upload"
          },
          "user_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "User Id",
            "description": "ID of the user who uploaded the file"
          },
          "title": {
            "type": "string",
            "title": "Title",
            "description": "Display title of the uploaded file"
          },
          "folder_id": {
            "type": "string",
            "format": "uuid",
            "title": "Folder Id",
            "description": "ID of the folder containing the file"
          },
          "file_name": {
            "type": "string",
            "title": "File Name",
            "description": "Original filename including extension"
          },
          "source_type": {
            "type": "string",
            "title": "Source Type",
            "description": "Upload provenance type",
            "default": "user_upload"
          },
          "source_metadata": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Source Metadata"
          },
          "external_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "External Id"
          },
          "metadata": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Metadata",
            "description": "Additional metadata associated with the file"
          },
          "created_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Created At",
            "description": "Timestamp when the upload was created"
          },
          "last_modified_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Last Modified At",
            "description": "Timestamp of last modification"
          },
          "delete_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Delete At",
            "description": "Scheduled deletion timestamp"
          },
          "is_deleted": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Is Deleted",
            "description": "Whether the file has been soft-deleted",
            "default": false
          },
          "last_modified_by_user_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Last Modified By User Id",
            "description": "ID of user who last modified the file"
          },
          "upload_status_type_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Upload Status Type Id",
            "description": "Current processing status of the upload"
          },
          "file_type_id": {
            "type": "integer",
            "title": "File Type Id",
            "description": "Stable file type identifier from the server file-type registry"
          },
          "has_tables": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Has Tables",
            "description": "Whether the file contains extractable tables",
            "default": false
          },
          "size": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Size",
            "description": "File size in bytes"
          },
          "tags": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Tags",
            "description": "Tags associated with the file"
          },
          "blob_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Blob Name",
            "description": "Internal blob storage reference"
          },
          "content_revision": {
            "type": "integer",
            "minimum": 1.0,
            "title": "Content Revision",
            "description": "Monotonic raw-content revision",
            "default": 1
          }
        },
        "type": "object",
        "required": [
          "upload_id",
          "title",
          "folder_id",
          "file_name",
          "file_type_id"
        ],
        "title": "Upload",
        "description": "Model representing a completed file upload with all metadata."
      },
      "UploadSession": {
        "properties": {
          "upload_id": {
            "type": "string",
            "format": "uuid",
            "title": "Upload Id",
            "description": "Unique identifier for the upload session"
          },
          "organization_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Organization Id",
            "description": "Canonical organization that owns the upload"
          },
          "folder_id": {
            "type": "string",
            "format": "uuid",
            "title": "Folder Id",
            "description": "ID of the folder where the file will be stored"
          },
          "file_name": {
            "type": "string",
            "title": "File Name",
            "description": "Original name of the file being uploaded"
          },
          "blob_name": {
            "type": "string",
            "title": "Blob Name",
            "description": "Internal blob storage name for the file"
          },
          "staging_blob_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Staging Blob Name",
            "description": "Staging blob name for update sessions"
          },
          "committed_blob_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Committed Blob Name",
            "description": "Committed blob name for the upload"
          },
          "committed_blob_deleted": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Committed Blob Deleted",
            "description": "Whether the committed blob has been removed"
          },
          "status": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Status",
            "description": "Current upload status (uploading, queued, processing, completed, etc.)"
          },
          "part_size": {
            "type": "integer",
            "title": "Part Size",
            "description": "Size of each upload part in bytes"
          },
          "num_parts": {
            "type": "integer",
            "title": "Num Parts",
            "description": "Total number of parts required for the upload"
          },
          "parts_received": {
            "type": "integer",
            "title": "Parts Received",
            "description": "Number of parts successfully uploaded so far"
          },
          "size": {
            "type": "integer",
            "title": "Size",
            "description": "Total file size in bytes"
          },
          "client_batch_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Client Batch Id",
            "description": "Optional batch identifier for grouping uploads"
          },
          "content_revision": {
            "type": "integer",
            "minimum": 1.0,
            "title": "Content Revision",
            "description": "Monotonic raw-content revision",
            "default": 1
          }
        },
        "type": "object",
        "required": [
          "upload_id",
          "folder_id",
          "file_name",
          "blob_name",
          "part_size",
          "num_parts",
          "parts_received",
          "size"
        ],
        "title": "UploadSession",
        "description": "Model representing the current state of a multipart file upload session."
      },
      "FinishUploadResponse": {
        "properties": {
          "upload_id": {
            "type": "string",
            "format": "uuid",
            "title": "Upload Id",
            "description": "ID of the upload object"
          },
          "status": {
            "type": "string",
            "title": "Status",
            "description": "Current status of the upload (typically 'queued' for processing)"
          }
        },
        "type": "object",
        "required": [
          "upload_id",
          "status"
        ],
        "title": "FinishUploadResponse",
        "description": "Response model for upload completion confirmation."
      },
      "UploadPartResponse": {
        "properties": {
          "upload_id": {
            "type": "string",
            "format": "uuid",
            "title": "Upload Id",
            "description": "ID of the upload object"
          },
          "part_number": {
            "type": "integer",
            "title": "Part Number",
            "description": "The part number that was uploaded"
          },
          "received_bytes": {
            "type": "integer",
            "title": "Received Bytes",
            "description": "Number of bytes received for this part"
          }
        },
        "type": "object",
        "required": [
          "upload_id",
          "part_number",
          "received_bytes"
        ],
        "title": "UploadPartResponse",
        "description": "Response model for individual part upload confirmation."
      },
      "StartUploadResponse": {
        "properties": {
          "upload_id": {
            "type": "string",
            "format": "uuid",
            "title": "Upload Id",
            "description": "ID of the upload object"
          },
          "part_size": {
            "type": "integer",
            "title": "Part Size",
            "description": "Size of each upload part in bytes"
          },
          "num_parts": {
            "type": "integer",
            "title": "Num Parts",
            "description": "Total number of parts required for the upload"
          },
          "file_type_id": {
            "type": "integer",
            "title": "File Type Id",
            "description": "Internal file type identifier based on file extension"
          }
        },
        "type": "object",
        "required": [
          "upload_id",
          "part_size",
          "num_parts",
          "file_type_id"
        ],
        "title": "StartUploadResponse",
        "description": "Response model for upload session initialization."
      },
      "StartUploadRequest": {
        "properties": {
          "folder_id": {
            "type": "string",
            "format": "uuid",
            "title": "Folder Id",
            "description": "The ID of the folder where the file will be uploaded"
          },
          "file_name": {
            "type": "string",
            "maxLength": 500,
            "title": "File Name",
            "description": "The name of the file being uploaded including the extension"
          },
          "size": {
            "type": "integer",
            "title": "Size",
            "description": "The total size of the file in bytes (max 512MB)"
          },
          "metadata": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Metadata",
            "description": "Optional metadata dictionary associated with the file"
          },
          "tags": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Tags",
            "description": "Optional list of tags for categorizing the file"
          },
          "client_batch_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Client Batch Id",
            "description": "Optional batch identifier for grouping multiple uploads"
          },
          "external_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "External Id",
            "description": "Client-provided external identifier (<=64 chars)"
          }
        },
        "type": "object",
        "required": [
          "folder_id",
          "file_name",
          "size"
        ],
        "title": "StartUploadRequest",
        "description": "Request model for initiating a multipart file upload session."
      },
      "PublicWait": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "kind": {
            "type": "string",
            "title": "Kind"
          },
          "status": {
            "type": "string",
            "title": "Status"
          },
          "prompt": {
            "$ref": "#/components/schemas/JsonObject-Output"
          }
        },
        "type": "object",
        "required": [
          "id",
          "kind",
          "status",
          "prompt"
        ],
        "title": "PublicWait"
      },
      "JsonObject-Output": {
        "additionalProperties": {
          "$ref": "#/components/schemas/core__json_types__JsonValue-Output"
        },
        "type": "object"
      },
      "core__json_types__JsonValue-Output": {
        "anyOf": [
          {
            "type": "boolean"
          },
          {
            "type": "integer"
          },
          {
            "type": "number"
          },
          {
            "type": "string"
          },
          {
            "items": {
              "$ref": "#/components/schemas/core__json_types__JsonValue-Output"
            },
            "type": "array"
          },
          {
            "additionalProperties": {
              "$ref": "#/components/schemas/core__json_types__JsonValue-Output"
            },
            "type": "object"
          },
          {
            "type": "null"
          }
        ]
      },
      "PublicWaitResponse": {
        "properties": {
          "idempotency_key": {
            "type": "string",
            "maxLength": 191,
            "minLength": 8,
            "title": "Idempotency Key"
          },
          "answers": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/WaitAnswer"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Answers"
          },
          "decision": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Decision"
          },
          "folder_ids": {
            "anyOf": [
              {
                "items": {
                  "type": "string",
                  "format": "uuid"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Folder Ids"
          },
          "upload_ids": {
            "anyOf": [
              {
                "items": {
                  "type": "string",
                  "format": "uuid"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Upload Ids"
          },
          "tool_parameters": {
            "anyOf": [
              {
                "additionalProperties": {
                  "$ref": "#/components/schemas/JsonObject-Input"
                },
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Tool Parameters"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "idempotency_key"
        ],
        "title": "PublicWaitResponse"
      },
      "JsonObject-Input": {
        "additionalProperties": {
          "$ref": "#/components/schemas/core__json_types__JsonValue-Input"
        },
        "type": "object"
      },
      "core__json_types__JsonValue-Input": {
        "anyOf": [
          {
            "type": "boolean"
          },
          {
            "type": "integer"
          },
          {
            "type": "number"
          },
          {
            "type": "string"
          },
          {
            "items": {
              "$ref": "#/components/schemas/core__json_types__JsonValue-Input"
            },
            "type": "array"
          },
          {
            "additionalProperties": {
              "$ref": "#/components/schemas/core__json_types__JsonValue-Input"
            },
            "type": "object"
          },
          {
            "type": "null"
          }
        ]
      },
      "WaitAnswer": {
        "properties": {
          "question_id": {
            "type": "string",
            "title": "Question Id"
          },
          "selected_option_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Selected Option Id"
          },
          "selected_option_answer": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Selected Option Answer"
          },
          "used_other": {
            "type": "boolean",
            "title": "Used Other",
            "default": false
          },
          "other_text": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Other Text"
          },
          "folder_ids": {
            "anyOf": [
              {
                "items": {
                  "type": "string",
                  "format": "uuid"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Folder Ids"
          },
          "upload_ids": {
            "anyOf": [
              {
                "items": {
                  "type": "string",
                  "format": "uuid"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Upload Ids"
          },
          "selected_paths": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Selected Paths"
          }
        },
        "type": "object",
        "required": [
          "question_id"
        ],
        "title": "WaitAnswer"
      },
      "PublicArtifact": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "title": {
            "type": "string",
            "title": "Title"
          },
          "size_bytes": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Size Bytes"
          },
          "download_path": {
            "type": "string",
            "title": "Download Path"
          }
        },
        "type": "object",
        "required": [
          "id",
          "title",
          "download_path"
        ],
        "title": "PublicArtifact"
      },
      "PublicExecution": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "thread_id": {
            "type": "string",
            "format": "uuid",
            "title": "Thread Id"
          },
          "kind": {
            "type": "string",
            "enum": [
              "inference",
              "agent",
              "workflow"
            ],
            "title": "Kind"
          },
          "status": {
            "type": "string",
            "enum": [
              "queued",
              "running",
              "waiting_for_approval",
              "waiting_for_input",
              "cancelled",
              "completed",
              "failed",
              "budget_exceeded"
            ],
            "title": "Status"
          },
          "run_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Run Id"
          },
          "output": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Output"
          },
          "structured_output": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/JsonObject-Output"
              },
              {
                "type": "null"
              }
            ]
          },
          "wait_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Wait Id"
          },
          "error_code": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Error Code"
          },
          "partial": {
            "type": "boolean",
            "title": "Partial",
            "default": false
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "id",
          "thread_id",
          "kind",
          "status"
        ],
        "title": "PublicExecution"
      },
      "WorkflowInput": {
        "properties": {
          "request_id": {
            "type": "string",
            "format": "uuid",
            "title": "Request Id",
            "description": "Client-generated UUIDv7 retained with the exact body for retries.",
            "examples": [
              "0194e3b8-8f80-7ba0-9426-317054159cf2"
            ]
          },
          "thread_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Thread Id"
          },
          "inputs": {
            "$ref": "#/components/schemas/JsonObject-Input"
          },
          "trigger": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 128
              },
              {
                "type": "null"
              }
            ],
            "title": "Trigger"
          },
          "trigger_input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/JsonObject-Input"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "request_id"
        ],
        "title": "WorkflowInput"
      },
      "PublicDefinition": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "description": {
            "type": "string",
            "title": "Description"
          },
          "input_schema": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/JsonObject-Output"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "type": "object",
        "required": [
          "id",
          "name",
          "description"
        ],
        "title": "PublicDefinition"
      },
      "AgentInput": {
        "properties": {
          "request_id": {
            "type": "string",
            "format": "uuid",
            "title": "Request Id",
            "description": "Client-generated UUIDv7 retained with the exact body for retries.",
            "examples": [
              "0194e3b8-8f80-7ba0-9426-317054159cf2"
            ]
          },
          "thread_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Thread Id"
          },
          "input": {
            "type": "string",
            "maxLength": 100000,
            "minLength": 1,
            "title": "Input"
          },
          "model": {
            "type": "string",
            "maxLength": 128,
            "minLength": 1,
            "title": "Model",
            "default": "auto"
          },
          "upload_ids": {
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "type": "array",
            "maxItems": 100,
            "title": "Upload Ids"
          },
          "folder_ids": {
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "type": "array",
            "maxItems": 100,
            "title": "Folder Ids"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "request_id",
          "input"
        ],
        "title": "AgentInput"
      },
      "InferenceInput": {
        "properties": {
          "request_id": {
            "type": "string",
            "format": "uuid",
            "title": "Request Id",
            "description": "Client-generated UUIDv7 retained with the exact body for retries.",
            "examples": [
              "0194e3b8-8f80-7ba0-9426-317054159cf2"
            ]
          },
          "thread_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Thread Id"
          },
          "input": {
            "type": "string",
            "maxLength": 100000,
            "minLength": 1,
            "title": "Input"
          },
          "model": {
            "type": "string",
            "maxLength": 128,
            "minLength": 1,
            "title": "Model"
          },
          "max_output_tokens": {
            "type": "integer",
            "maximum": 100000.0,
            "minimum": 1.0,
            "title": "Max Output Tokens",
            "default": 4096
          },
          "system_instructions": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 16000
              },
              {
                "type": "null"
              }
            ],
            "title": "System Instructions"
          },
          "output_format": {
            "type": "string",
            "enum": [
              "text",
              "json"
            ],
            "title": "Output Format",
            "default": "text"
          },
          "output_schema": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/JsonObject-Input"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "request_id",
          "input",
          "model"
        ],
        "title": "InferenceInput"
      },
      "PublicModel": {
        "properties": {
          "slug": {
            "type": "string",
            "title": "Slug"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "max_input_tokens": {
            "type": "integer",
            "title": "Max Input Tokens"
          },
          "max_output_tokens": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Max Output Tokens"
          }
        },
        "type": "object",
        "required": [
          "slug",
          "name",
          "max_input_tokens",
          "max_output_tokens"
        ],
        "title": "PublicModel"
      }
    }
  },
  "security": [
    {
      "BearerAuth": []
    }
  ]
}
