---
version: 2
interactions:
- id: 0
  request:
    proto: HTTP/1.1
    proto_major: 1
    proto_minor: 1
    content_length: 550
    host: generativelanguage.googleapis.com
    body: "{\"contents\":[{\"parts\":[{\"text\":\"What's the weather in Florence, Italy?\"}],\"role\":\"user\"}],\"generationConfig\":{\"thinkingConfig\":{\"includeThoughts\":true,\"thinkingBudget\":128}},\"systemInstruction\":{\"parts\":[{\"text\":\"You are a helpful assistant\"}],\"role\":\"user\"},\"toolConfig\":{\"functionCallingConfig\":{\"mode\":\"AUTO\"}},\"tools\":[{\"functionDeclarations\":[{\"description\":\"Get weather information for a location\",\"name\":\"weather\",\"parameters\":{\"properties\":{\"location\":{\"description\":\"the city\",\"type\":\"STRING\"}},\"required\":[\"location\"],\"type\":\"OBJECT\"}}]}]}\n"
    headers:
      Content-Type:
      - application/json
      User-Agent:
      - google-genai-sdk/1.23.0 gl-go/go1.25.0
    url: https://generativelanguage.googleapis.com/v1beta/models/gemini-2.5-pro:generateContent
    method: POST
  response:
    proto: HTTP/2.0
    proto_major: 2
    proto_minor: 0
    content_length: -1
    uncompressed: true
    body: "{\n  \"candidates\": [\n    {\n      \"content\": {\n        \"parts\": [\n          {\n            \"text\": \"**Getting the Weather in Florence**\\n\\nOkay, so I see the user wants the weather for \\\"Florence, Italy.\\\"  My initial thought is to grab the `weather.get_weather` tool. Perfect, it has a `location` parameter, which is exactly what I need. The user has thoughtfully provided \\\"Florence, Italy,\\\" so that's a straightforward input for the `location` parameter. This is a quick and efficient request to handle.\\n\",\n            \"thought\": true\n          },\n          {\n            \"functionCall\": {\n              \"name\": \"weather\",\n              \"args\": {\n                \"location\": \"Florence, Italy\"\n              }\n            },\n            \"thoughtSignature\": \"CokDAdHtim93vKtHJYI78AitJBYITb44JuVhBViGlnpnj3bSPvRBDI3GF8joEA68HpEu4qw281IW11+lQD+rSyPmhuYibh1cABkgMBMnlzHWn1FyJ6Vxv14WNDQKchoHMJpJ7yvFsga1jI2ALYJ+beV+6jrJa2/yA5VAaEKFTtxisBZzxM7U2HkHsZrAhWZtVK+GBx2bYuXRRF5THFT3ilIzPOCb02cG8Ve4abqO23J/augLfoftvDn+QK+PKyj13MdD3w/f89xjLr7MH4WXn6eEWU9TENJGiMgOoEXvNyjf/ZiAoShowtBYkhXxG0IFGai+O6x42LryDImGoXCbhdNQ7/zOVwbLBzWBnLEuVVNN7KuJXhl+FrsYJj+WDhxmTxjE1MKatCG9mNFAl3BxSEqDkNtBDng2SrFLTpt80+PFR9QB0jdBoml7e/k0kNCBH+5ObGFaKAxQaSF/QHarAF9K4YmR/7OpryU/y+etlYGHYc/tGvXBZRZ8NUxbfjEBt0N99VoGUx2WXKJo\"\n          }\n        ],\n        \"role\": \"model\"\n      },\n      \"finishReason\": \"STOP\",\n      \"index\": 0\n    }\n  ],\n  \"usageMetadata\": {\n    \"promptTokenCount\": 54,\n    \"candidatesTokenCount\": 15,\n    \"totalTokenCount\": 162,\n    \"promptTokensDetails\": [\n      {\n        \"modality\": \"TEXT\",\n        \"tokenCount\": 54\n      }\n    ],\n    \"thoughtsTokenCount\": 93\n  },\n  \"modelVersion\": \"gemini-2.5-pro\",\n  \"responseId\": \"bpHKaMGVJc6YkdUP3fStCA\"\n}\n"
    headers:
      Content-Type:
      - application/json; charset=UTF-8
    status: 200 OK
    code: 200
    duration: 4.193896625s
- id: 1
  request:
    proto: HTTP/1.1
    proto_major: 1
    proto_minor: 1
    content_length: 776
    host: generativelanguage.googleapis.com
    body: "{\"contents\":[{\"parts\":[{\"text\":\"What's the weather in Florence, Italy?\"}],\"role\":\"user\"},{\"parts\":[{\"functionCall\":{\"args\":{\"location\":\"Florence, Italy\"},\"id\":\"weather\",\"name\":\"weather\"}}],\"role\":\"model\"},{\"parts\":[{\"functionResponse\":{\"id\":\"weather\",\"name\":\"weather\",\"response\":{\"result\":\"40 C\"}}}],\"role\":\"user\"}],\"generationConfig\":{\"thinkingConfig\":{\"includeThoughts\":true,\"thinkingBudget\":128}},\"systemInstruction\":{\"parts\":[{\"text\":\"You are a helpful assistant\"}],\"role\":\"user\"},\"toolConfig\":{\"functionCallingConfig\":{\"mode\":\"AUTO\"}},\"tools\":[{\"functionDeclarations\":[{\"description\":\"Get weather information for a location\",\"name\":\"weather\",\"parameters\":{\"properties\":{\"location\":{\"description\":\"the city\",\"type\":\"STRING\"}},\"required\":[\"location\"],\"type\":\"OBJECT\"}}]}]}\n"
    headers:
      Content-Type:
      - application/json
      User-Agent:
      - google-genai-sdk/1.23.0 gl-go/go1.25.0
    url: https://generativelanguage.googleapis.com/v1beta/models/gemini-2.5-pro:generateContent
    method: POST
  response:
    proto: HTTP/2.0
    proto_major: 2
    proto_minor: 0
    content_length: -1
    uncompressed: true
    body: "{\n  \"candidates\": [\n    {\n      \"content\": {\n        \"parts\": [\n          {\n            \"text\": \"It's 40 C in Florence, Italy. \\n\"\n          }\n        ],\n        \"role\": \"model\"\n      },\n      \"finishReason\": \"STOP\",\n      \"index\": 0\n    }\n  ],\n  \"usageMetadata\": {\n    \"promptTokenCount\": 84,\n    \"candidatesTokenCount\": 12,\n    \"totalTokenCount\": 96,\n    \"promptTokensDetails\": [\n      {\n        \"modality\": \"TEXT\",\n        \"tokenCount\": 84\n      }\n    ]\n  },\n  \"modelVersion\": \"gemini-2.5-pro\",\n  \"responseId\": \"cJHKaOO8KfrY7M8Pg8-psQo\"\n}\n"
    headers:
      Content-Type:
      - application/json; charset=UTF-8
    status: 200 OK
    code: 200
    duration: 2.006433542s
