{ "candidates": [ { "content": { "role": "model", "parts": [ { "text": "The answer is 42." }, { "functionCall": { "name": "get_weather", "args": { "city": "Paris" } } } ] }, "finishReason": "STOP", "index": 0, "safetyRatings": [] } ], "usageMetadata": { "promptTokenCount": 10, "toolUsePromptTokenCount": 0, "candidatesTokenCount": 5, "totalTokenCount": 15, "thoughtsTokenCount": 0, "cachedContentTokenCount": 0, "promptTokensDetails": null, "toolUsePromptTokensDetails": null, "candidatesTokensDetails": null, "billing_usage": { "source": "oai_chat", "semantic": "openai", "openai_usage": { "prompt_tokens": 10, "completion_tokens": 5, "total_tokens": 15, "prompt_tokens_details": { "cached_tokens": 3, "text_tokens": 0, "audio_tokens": 0, "image_tokens": 0 }, "completion_tokens_details": { "text_tokens": 0, "audio_tokens": 0, "image_tokens": 0, "reasoning_tokens": 2 }, "input_tokens": 0, "output_tokens": 0, "input_tokens_details": null, "claude_cache_creation_5_m_tokens": 0, "claude_cache_creation_1_h_tokens": 0 } } } }