{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://benchmarks.komodor.com/schema/result.schema.json",
  "title": "Benchmark result",
  "type": "object",
  "additionalProperties": false,
  "required": ["agent", "model", "date", "metrics"],
  "properties": {
    "$schema": { "type": "string" },
    "agent": { "type": "string", "minLength": 1 },
    "model": { "type": "string", "minLength": 1 },
    "provider": { "type": "string" },
    "date": { "type": "string", "format": "date" },
    "runs": { "type": "integer", "minimum": 1 },
    "metrics": {
      "type": "object",
      "minProperties": 1,
      "additionalProperties": { "type": "number" }
    },
    "categories": {
      "type": "object",
      "additionalProperties": { "type": "number" }
    },
    "config": { "type": "object" },
    "source": { "type": "string", "format": "uri", "pattern": "^https?://" },
    "notes": { "type": "string" }
  }
}
