when:
  path: /v1beta/models/gemini-2.5-flash:generateContent
  method: POST
  query_param:
  - name: key
    value: '[REDACTED]'
  header:
  - name: accept
    value: '*/*'
  - name: content-type
    value: application/json
  body: '{"contents":[{"parts":[{"text":"I''m planning a trip. What is the current weather in Tokyo, Japan? Based on the weather conditions, should I pack an umbrella or sunscreen? Use the get_weather tool to check before answering.","thought":false}],"role":"user"}],"generationConfig":{"maxOutputTokens":4096,"thinkingConfig":{"includeThoughts":true,"thinkingBudget":4096}},"safetySettings":null,"systemInstruction":{"parts":[{"text":"You are a weather assistant. You have access to a get_weather tool. You must call the get_weather tool for any weather question and never guess weather data. After receiving the tool result, provide a concise summary of the weather.","thought":false}],"role":"model"},"toolConfig":null,"tools":[{"codeExecution":null,"functionDeclarations":[{"description":"Get the current weather for a city. Must be called for weather questions.","name":"get_weather","parameters":{"properties":{"city":{"description":"City name to get weather for","type":"string"}},"required":["city"],"type":"object"}}]}]}'
then:
  status: 200
  header:
  - name: content-type
    value: application/json; charset=UTF-8
  body: '{"candidates":[{"content":{"parts":[{"text":"**Analyzing the Weather Query**\n\nOkay, so the user needs the current weather in Tokyo and wants a packing recommendation – umbrella or sunscreen. That''s straightforward. My initial assessment is that I should immediately use the `get_weather` tool. The user is explicitly requesting weather details for Tokyo and a related packing suggestion based on that information. The structure of the request clearly indicates this is the right approach. I will call the `get_weather` tool with the `city` parameter set to ''Tokyo'', and then I can analyze the returned conditions to formulate a helpful response for this expert user.\n","thought":true},{"functionCall":{"args":{"city":"Tokyo"},"name":"get_weather"},"thoughtSignature":"signature_REDACTED_1"}],"role":"model"},"finishMessage":"Model generated function call(s).","finishReason":"STOP","index":0}],"modelVersion":"gemini-2.5-flash","responseId":"id_REDACTED_1","usageMetadata":{"candidatesTokenCount":15,"promptTokenCount":144,"promptTokensDetails":[{"modality":"TEXT","tokenCount":144}],"serviceTier":"standard","thoughtsTokenCount":119,"totalTokenCount":278}}'
---
when:
  path: /v1beta/models/gemini-2.5-flash:generateContent
  method: POST
  query_param:
  - name: key
    value: '[REDACTED]'
  header:
  - name: accept
    value: '*/*'
  - name: content-type
    value: application/json
  body: '{"contents":[{"parts":[{"text":"I''m planning a trip. What is the current weather in Tokyo, Japan? Based on the weather conditions, should I pack an umbrella or sunscreen? Use the get_weather tool to check before answering.","thought":false}],"role":"user"},{"parts":[{"text":"**Analyzing the Weather Query**\n\nOkay, so the user needs the current weather in Tokyo and wants a packing recommendation – umbrella or sunscreen. That''s straightforward. My initial assessment is that I should immediately use the `get_weather` tool. The user is explicitly requesting weather details for Tokyo and a related packing suggestion based on that information. The structure of the request clearly indicates this is the right approach. I will call the `get_weather` tool with the `city` parameter set to ''Tokyo'', and then I can analyze the returned conditions to formulate a helpful response for this expert user.\n","thought":true},{"functionCall":{"args":{"city":"Tokyo"},"name":"get_weather"},"thought":false,"thoughtSignature":"signature_REDACTED_1"}],"role":"model"},{"parts":[{"functionResponse":{"name":"get_weather","response":{"result":"Weather in Tokyo: 72F (22C), sunny with light clouds, humidity 45%, wind 8 mph NW"}},"thought":false}],"role":"user"}],"generationConfig":{"maxOutputTokens":4096,"thinkingConfig":{"includeThoughts":true,"thinkingBudget":4096}},"safetySettings":null,"systemInstruction":{"parts":[{"text":"You are a weather assistant. You have access to a get_weather tool. You must call the get_weather tool for any weather question and never guess weather data. After receiving the tool result, provide a concise summary of the weather.","thought":false}],"role":"model"},"toolConfig":null,"tools":[{"codeExecution":null,"functionDeclarations":[{"description":"Get the current weather for a city. Must be called for weather questions.","name":"get_weather","parameters":{"properties":{"city":{"description":"City name to get weather for","type":"string"}},"required":["city"],"type":"object"}}]}]}'
then:
  status: 200
  header:
  - name: content-type
    value: application/json; charset=UTF-8
  body: '{"candidates":[{"content":{"parts":[{"text":"**Tokyo Weather Assessment**\n\nOkay, the user wants to know about the weather in Tokyo so they can decide on umbrella or sunscreen. I''ve got the `get_weather` tool running, and it''s returned some solid data. Let''s see... Tokyo''s sitting at 72F (22C), sunny with just light clouds, humidity at 45%, and a gentle 8 mph breeze from the northwest.\n\nRight, so that''s pretty clear. \"Sunny with light clouds\" screams sunscreen, not an umbrella. The temperature is perfect for a day out. Nothing extreme, just pleasant. Time to give the user the best advice! I''ll tell them the weather''s beautiful, and definitely recommend packing the sunscreen.\n","thought":true},{"text":"The current weather in Tokyo, Japan, is 72F (22C), sunny with light clouds, 45% humidity, and a wind of 8 mph from the Northwest. You should pack sunscreen.","thoughtSignature":"signature_REDACTED_2"}],"role":"model"},"finishReason":"STOP","index":0}],"modelVersion":"gemini-2.5-flash","responseId":"id_REDACTED_2","usageMetadata":{"candidatesTokenCount":45,"promptTokenCount":323,"promptTokensDetails":[{"modality":"TEXT","tokenCount":323}],"serviceTier":"standard","thoughtsTokenCount":132,"totalTokenCount":500}}'
