{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/evalgate-com/json-schema/evalgate-com-get-api-benchmarks-id-response200-application-json-schema.json",
  "title": "GetApiBenchmarksIdResponse200ApplicationJson",
  "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/GetApiBenchmarksIdResponse200ApplicationJson",
  "type": "object",
  "properties": {
    "benchmark": {
      "type": "object",
      "properties": {
        "id": {
          "type": "number"
        },
        "name": {
          "type": "string"
        },
        "description": {
          "oneOf": [
            {
              "type": "null"
            },
            {
              "type": "string"
            }
          ]
        },
        "organizationId": {
          "$ref": "#/$defs/OrganizationId"
        },
        "taskType": {
          "type": "string"
        },
        "dataset": {
          "oneOf": [
            {
              "type": "null"
            },
            {
              "type": "object",
              "properties": {
                "items": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "input": {
                        "type": "string"
                      },
                      "expectedOutput": {
                        "type": "string"
                      },
                      "metadata": {
                        "type": "object",
                        "additionalProperties": {
                          "$ref": "#/$defs/JsonValue"
                        }
                      }
                    },
                    "additionalProperties": false,
                    "required": [
                      "input"
                    ]
                  }
                }
              },
              "additionalProperties": false,
              "required": [
                "items"
              ]
            }
          ]
        },
        "metrics": {
          "type": "object",
          "properties": {
            "accuracy": {
              "oneOf": [
                {
                  "type": "boolean",
                  "enum": [
                    false
                  ]
                },
                {
                  "type": "boolean",
                  "enum": [
                    true
                  ]
                }
              ]
            },
            "latency": {
              "oneOf": [
                {
                  "type": "boolean",
                  "enum": [
                    false
                  ]
                },
                {
                  "type": "boolean",
                  "enum": [
                    true
                  ]
                }
              ]
            },
            "cost": {
              "oneOf": [
                {
                  "type": "boolean",
                  "enum": [
                    false
                  ]
                },
                {
                  "type": "boolean",
                  "enum": [
                    true
                  ]
                }
              ]
            },
            "successRate": {
              "oneOf": [
                {
                  "type": "boolean",
                  "enum": [
                    false
                  ]
                },
                {
                  "type": "boolean",
                  "enum": [
                    true
                  ]
                }
              ]
            },
            "toolUseEfficiency": {
              "oneOf": [
                {
                  "type": "boolean",
                  "enum": [
                    false
                  ]
                },
                {
                  "type": "boolean",
                  "enum": [
                    true
                  ]
                }
              ]
            }
          },
          "additionalProperties": false
        },
        "isPublic": {
          "oneOf": [
            {
              "type": "null"
            },
            {
              "type": "boolean",
              "enum": [
                false
              ]
            },
            {
              "type": "boolean",
              "enum": [
                true
              ]
            }
          ]
        },
        "createdBy": {
          "type": "string"
        },
        "createdAt": {
          "type": "string",
          "format": "date-time"
        },
        "updatedAt": {
          "type": "string",
          "format": "date-time"
        }
      },
      "additionalProperties": false,
      "required": [
        "id",
        "name",
        "description",
        "organizationId",
        "taskType",
        "dataset",
        "metrics",
        "isPublic",
        "createdBy",
        "createdAt",
        "updatedAt"
      ]
    },
    "stats": {
      "type": "object",
      "properties": {
        "participantCount": {
          "type": "number"
        },
        "totalRuns": {
          "type": "number"
        },
        "avgAccuracy": {
          "type": "number"
        },
        "avgLatency": {
          "type": "number"
        },
        "topPerformer": {
          "oneOf": [
            {
              "type": "null"
            },
            {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string"
                },
                "architecture": {
                  "type": "string"
                },
                "accuracy": {
                  "oneOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "number"
                    }
                  ]
                }
              },
              "additionalProperties": false,
              "required": [
                "name",
                "architecture",
                "accuracy"
              ]
            }
          ]
        }
      },
      "additionalProperties": false,
      "required": [
        "participantCount",
        "totalRuns",
        "avgAccuracy",
        "avgLatency",
        "topPerformer"
      ]
    }
  },
  "additionalProperties": false,
  "required": [
    "benchmark",
    "stats"
  ],
  "$defs": {
    "JsonValue": {
      "oneOf": [
        {
          "type": "null"
        },
        {
          "type": "boolean"
        },
        {
          "type": "number"
        },
        {
          "type": "string"
        },
        {
          "type": "array",
          "items": {
            "$ref": "#/$defs/JsonValue"
          }
        },
        {
          "type": "object",
          "additionalProperties": {
            "$ref": "#/$defs/JsonValue"
          }
        }
      ]
    },
    "OrganizationId": {
      "type": "string",
      "format": "uuid"
    }
  }
}