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 they''re wondering about umbrella or sunscreen. Got it. This is straightforward. First, I need to call the `get_weather` tool. I''ll pass \"Tokyo\" as the city parameter. That will give me the raw weather data. Once I have that, I can quickly distill the key information – the temperature, cloud cover, and probability of precipitation – and then formulate a clear recommendation for the user. Based on that data I will decide to suggest an umbrella, sunscreen, or both. Simple and direct. Let''s get that weather data.\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":98,"totalTokenCount":257}}'
---
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 they''re wondering about umbrella or sunscreen. Got it. This is straightforward. First, I need to call the `get_weather` tool. I''ll pass \"Tokyo\" as the city parameter. That will give me the raw weather data. Once I have that, I can quickly distill the key information – the temperature, cloud cover, and probability of precipitation – and then formulate a clear recommendation for the user. Based on that data I will decide to suggest an umbrella, sunscreen, or both. Simple and direct. Let''s get that weather data.\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 Check-in**\n\nOkay, so the user wants to know about the weather in Tokyo, and whether to pack for sun or rain. Alright, let''s see... I''ve successfully used the `get_weather` tool and got the data: 72F (22C), sunny with light clouds, 45% humidity, and 8 mph NW wind.\n\nHmm, \"sunny with light clouds\" pretty clearly indicates that sunscreen is the *definitely* the way to go over an umbrella. The humidity''s a bit lower than I''d expect for Tokyo, so maybe not *too* oppressive, but still consider staying hydrated. Wind''s not extreme. Basically, it''s a lovely day. Good information for them. I''m ready to craft the response now.\n","thought":true},{"text":"The current weather in Tokyo, Japan is 72°F (22°C), sunny with light clouds, 45% humidity, and a northwest wind at 8 mph. 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":44,"promptTokenCount":336,"promptTokensDetails":[{"modality":"TEXT","tokenCount":336}],"serviceTier":"standard","thoughtsTokenCount":108,"totalTokenCount":488}}'
