{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aiagentscity-com/json-schema/aiagentscity-com-track-request-schema.json",
  "title": "TrackRequest",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aiagentscity-com-openapi.json#/components/schemas/TrackRequest",
  "properties": {
    "agent_id": {
      "type": "string",
      "title": "Agent Id"
    },
    "rail": {
      "type": "string",
      "title": "Rail"
    },
    "amount_cents": {
      "anyOf": [
        {
          "type": "integer",
          "maximum": 10000000.0,
          "minimum": 0.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Amount Cents"
    },
    "service": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Service"
    },
    "tokens_in": {
      "type": "integer",
      "minimum": 0.0,
      "title": "Tokens In",
      "default": 0
    },
    "tokens_out": {
      "type": "integer",
      "minimum": 0.0,
      "title": "Tokens Out",
      "default": 0
    },
    "cache_hit_in": {
      "type": "integer",
      "minimum": 0.0,
      "title": "Cache Hit In",
      "default": 0
    },
    "cache_write_5m_in": {
      "type": "integer",
      "minimum": 0.0,
      "title": "Cache Write 5M In",
      "default": 0
    },
    "cache_write_1h_in": {
      "type": "integer",
      "minimum": 0.0,
      "title": "Cache Write 1H In",
      "default": 0
    },
    "model": {
      "type": "string",
      "title": "Model",
      "default": ""
    },
    "agent_secret": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Agent Secret"
    },
    "workspace_key": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Workspace Key"
    }
  },
  "type": "object",
  "required": [
    "agent_id",
    "rail"
  ]
}