{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/LatencyMetrics",
  "title": "LatencyMetrics",
  "type": "object",
  "properties": {
    "turnCount": {
      "type": "number",
      "description": "This is the number of conversation turns."
    },
    "avgTurn": {
      "type": "number",
      "description": "This is the average total turn latency in milliseconds."
    },
    "avgTranscriber": {
      "type": "number",
      "description": "This is the average transcriber latency in milliseconds."
    },
    "avgModel": {
      "type": "number",
      "description": "This is the average LLM/model latency in milliseconds."
    },
    "avgVoice": {
      "type": "number",
      "description": "This is the average voice/TTS latency in milliseconds."
    },
    "avgEndpointing": {
      "type": "number",
      "description": "This is the average endpointing latency in milliseconds."
    }
  },
  "required": [
    "turnCount"
  ]
}