{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/trajectory/json-schema/trajectory-benchmark-ingestion-submission-request-schema.json",
  "title": "BenchmarkIngestionSubmissionRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/trajectory-benchmark-ingestion-api-openapi.yml#/components/schemas/BenchmarkIngestionSubmissionRequest",
  "properties": {
    "agent_id": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 64,
          "pattern": "^agt_[a-z0-9]+$"
        },
        {
          "type": "null"
        }
      ],
      "title": "Agent Id",
      "description": "The benchmark's agent ID. Provide agent_id or agent_name for every ingestion."
    },
    "agent_name": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 256
        },
        {
          "type": "null"
        }
      ],
      "title": "Agent Name",
      "description": "The benchmark's agent name. Provide agent_id or agent_name for every ingestion."
    },
    "bench_name": {
      "type": "string",
      "maxLength": 1024,
      "minLength": 3,
      "pattern": "^[A-Za-z0-9 ._-]+$",
      "title": "Bench Name",
      "description": "Reusing a benchmark name pushes a new version of that benchmark."
    },
    "metadata": {
      "additionalProperties": true,
      "type": "object",
      "title": "Metadata"
    },
    "upload_digest": {
      "type": "string",
      "pattern": "^[a-f0-9]{64}$",
      "title": "Upload Digest"
    },
    "build_images": {
      "type": "boolean",
      "title": "Build Images",
      "default": false
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "bench_name",
    "metadata",
    "upload_digest"
  ]
}