{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/call2me-app/json-schema/call2me-app-report-usage-request-schema.json",
  "title": "ReportUsageRequest",
  "description": "Usage report from voice-agent.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/call2me-app-internal-api-openapi.yml#/components/schemas/ReportUsageRequest",
  "properties": {
    "user_id": {
      "type": "string",
      "title": "User Id"
    },
    "agent_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Agent Id"
    },
    "call_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Call Id"
    },
    "room_name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Room Name"
    },
    "duration_seconds": {
      "type": "number",
      "title": "Duration Seconds",
      "default": 0
    },
    "llm_model": {
      "type": "string",
      "title": "Llm Model",
      "default": "openrouter/auto"
    },
    "llm_input_tokens": {
      "type": "integer",
      "title": "Llm Input Tokens",
      "default": 0
    },
    "llm_output_tokens": {
      "type": "integer",
      "title": "Llm Output Tokens",
      "default": 0
    },
    "stt_model": {
      "type": "string",
      "title": "Stt Model",
      "default": "nova-2"
    },
    "stt_audio_seconds": {
      "type": "number",
      "title": "Stt Audio Seconds",
      "default": 0
    },
    "tts_model": {
      "type": "string",
      "title": "Tts Model",
      "default": "tts-1"
    },
    "tts_characters": {
      "type": "integer",
      "title": "Tts Characters",
      "default": 0
    },
    "engine": {
      "type": "string",
      "title": "Engine",
      "default": "cascade"
    },
    "transcript": {
      "anyOf": [
        {
          "items": {
            "additionalProperties": true,
            "type": "object"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Transcript"
    },
    "disconnection_reason": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 64
        },
        {
          "type": "null"
        }
      ],
      "title": "Disconnection Reason"
    },
    "active_seconds": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Active Seconds"
    },
    "tool_calls": {
      "type": "integer",
      "maximum": 10000.0,
      "minimum": 0.0,
      "title": "Tool Calls",
      "default": 0
    },
    "look_count": {
      "type": "integer",
      "maximum": 1000.0,
      "minimum": 0.0,
      "title": "Look Count",
      "default": 0
    }
  },
  "type": "object",
  "required": [
    "user_id"
  ]
}