{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/bot-trade-org/json-schema/bot-trade-org-run-create-input-body-schema.json",
  "title": "RunCreateInputBody",
  "x-generated": "2026-11-03",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/bot-trade-org-openapi.json#/components/schemas/RunCreateInputBody",
  "additionalProperties": false,
  "properties": {
    "$schema": {
      "description": "A URL to the JSON Schema for this object.",
      "format": "uri",
      "readOnly": true,
      "type": "string"
    },
    "agent_info": {
      "$ref": "#/$defs/AgentInfo",
      "description": "Structured agent name, framework, model, version, source, and configuration."
    },
    "bot_name": {
      "description": "Optional display name for the bot, strategy, or experiment creating this run.",
      "type": "string"
    },
    "scenario_id": {
      "description": "Scenario UUID. Provide this OR scenario_slug.",
      "type": "string"
    },
    "scenario_slug": {
      "description": "Scenario slug. Used if scenario_id is omitted.",
      "type": "string"
    }
  },
  "type": "object",
  "$defs": {
    "AgentInfo": {
      "additionalProperties": false,
      "properties": {
        "config": {
          "additionalProperties": {},
          "type": "object"
        },
        "framework": {
          "type": "string"
        },
        "model": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "source_revision": {
          "type": "string"
        },
        "source_url": {
          "type": "string"
        },
        "version": {
          "type": "string"
        }
      },
      "required": [
        "name"
      ],
      "type": "object"
    }
  }
}