{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/amigo/main/json-schema/amigo-workspace-benchmarks-schema.json",
  "title": "WorkspaceBenchmarks",
  "description": "Workspace-level call quality benchmarks for contextual comparison.",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amigo-calls-api-openapi.yml#/components/schemas/WorkspaceBenchmarks",
  "properties": {
    "avg_quality_score": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Avg Quality Score"
    },
    "p50_quality_score": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "P50 Quality Score"
    },
    "p25_quality_score": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "P25 Quality Score"
    },
    "p75_quality_score": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "P75 Quality Score"
    },
    "total_calls": {
      "type": "integer",
      "title": "Total Calls",
      "default": 0
    },
    "avg_duration_seconds": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Avg Duration Seconds"
    },
    "escalation_rate": {
      "type": "number",
      "title": "Escalation Rate",
      "default": 0.0
    },
    "quality_distribution": {
      "additionalProperties": {
        "type": "integer"
      },
      "type": "object",
      "title": "Quality Distribution",
      "default": {}
    }
  },
  "type": "object"
}