{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/evalgate-com/json-schema/evalgate-com-get-api-benchmarks-id-leaderboard-response200-application-json-schema.json",
  "title": "GetApiBenchmarksIdLeaderboardResponse200ApplicationJson",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/evalgate-com-benchmarks-api-openapi.yml#/components/schemas/GetApiBenchmarksIdLeaderboardResponse200ApplicationJson",
  "type": "object",
  "properties": {
    "benchmark": {
      "type": "object",
      "properties": {
        "id": {
          "type": "number"
        },
        "name": {
          "type": "string"
        },
        "taskType": {
          "type": "string"
        }
      },
      "additionalProperties": false,
      "required": [
        "id",
        "name",
        "taskType"
      ]
    },
    "sortBy": {
      "oneOf": [
        {
          "type": "string",
          "enum": [
            "score"
          ]
        },
        {
          "type": "string",
          "enum": [
            "cost"
          ]
        },
        {
          "type": "string",
          "enum": [
            "accuracy"
          ]
        },
        {
          "type": "string",
          "enum": [
            "latency"
          ]
        }
      ]
    },
    "entries": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "rank": {
            "type": "number"
          },
          "agentConfig": {
            "type": "object",
            "properties": {
              "id": {
                "type": "number"
              },
              "name": {
                "type": "string"
              },
              "architecture": {
                "type": "string"
              },
              "model": {
                "type": "string"
              }
            },
            "additionalProperties": false,
            "required": [
              "id",
              "name",
              "architecture",
              "model"
            ]
          },
          "accuracy": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "type": "number"
              }
            ]
          },
          "accuracyStddev": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "type": "number"
              }
            ]
          },
          "latencyP50": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "type": "number"
              }
            ]
          },
          "latencyP95": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "type": "number"
              }
            ]
          },
          "totalCost": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "type": "string"
              }
            ]
          },
          "successRate": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "type": "number"
              }
            ]
          },
          "successRateStddev": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "type": "number"
              }
            ]
          },
          "runCount": {
            "type": "number"
          },
          "score": {
            "type": "number"
          }
        },
        "additionalProperties": false,
        "required": [
          "rank",
          "agentConfig",
          "accuracy",
          "accuracyStddev",
          "latencyP50",
          "latencyP95",
          "totalCost",
          "successRate",
          "successRateStddev",
          "runCount",
          "score"
        ]
      }
    },
    "totalEntries": {
      "type": "number"
    }
  },
  "additionalProperties": false,
  "required": [
    "benchmark",
    "sortBy",
    "entries",
    "totalEntries"
  ]
}