{
  "type": "result",
  "subtype": "error_max_structured_output_retries",
  "duration_ms": 151967,
  "duration_api_ms": 45344,
  "is_error": true,
  "num_turns": 24,
  "stop_reason": "tool_use",
  "session_id": "57558198-9a5e-4bdb-89ee-130f61c40239",
  "total_cost_usd": 0.8903,
  "usage": {
    "input_tokens": 274827,
    "cache_creation_input_tokens": 0,
    "cache_read_input_tokens": 0,
    "output_tokens": 4387,
    "server_tool_use": {
      "web_search_requests": 0,
      "web_fetch_requests": 0
    },
    "service_tier": "standard",
    "cache_creation": {
      "ephemeral_1h_input_tokens": 0,
      "ephemeral_5m_input_tokens": 0
    },
    "inference_geo": "",
    "iterations": [],
    "speed": "standard"
  },
  "modelUsage": {
    "claude-sonnet-4-6": {
      "inputTokens": 274827,
      "outputTokens": 4387,
      "cacheReadInputTokens": 0,
      "cacheCreationInputTokens": 0,
      "webSearchRequests": 0,
      "costUSD": 0.8903,
      "contextWindow": 200000,
      "maxOutputTokens": 32000
    }
  },
  "permission_denials": [],
  "fast_mode_state": "off",
  "uuid": "b203a47f-3fbd-4290-884f-3e7b74d6a66c",
  "errors": [
    "Failed to provide valid structured output after 5 attempts"
  ]
}