{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/bookmyhost/json-schema/bookmyhost-token-count-response-schema.json",
  "title": "TokenCountResponse",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/bookmyhost-llm-utils-api-openapi.yml#/components/schemas/TokenCountResponse",
  "properties": {
    "total_tokens": {
      "type": "integer",
      "title": "Total Tokens"
    },
    "request_model": {
      "type": "string",
      "title": "Request Model"
    },
    "model_used": {
      "type": "string",
      "title": "Model Used"
    },
    "tokenizer_type": {
      "type": "string",
      "title": "Tokenizer Type"
    },
    "original_response": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Original Response"
    },
    "error": {
      "type": "boolean",
      "title": "Error",
      "default": false
    },
    "error_message": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Error Message"
    },
    "status_code": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Status Code"
    }
  },
  "type": "object",
  "required": [
    "total_tokens",
    "request_model",
    "model_used",
    "tokenizer_type"
  ]
}