1---
2version: 2
3interactions:
4- id: 0
5 request:
6 proto: HTTP/1.1
7 proto_major: 1
8 proto_minor: 1
9 content_length: 550
10 host: generativelanguage.googleapis.com
11 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"
12 headers:
13 Content-Type:
14 - application/json
15 User-Agent:
16 - google-genai-sdk/1.23.0 gl-go/go1.25.0
17 url: https://generativelanguage.googleapis.com/v1beta/models/gemini-2.5-pro:generateContent
18 method: POST
19 response:
20 proto: HTTP/2.0
21 proto_major: 2
22 proto_minor: 0
23 content_length: -1
24 uncompressed: true
25 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"
26 headers:
27 Content-Type:
28 - application/json; charset=UTF-8
29 status: 200 OK
30 code: 200
31 duration: 4.193896625s
32- id: 1
33 request:
34 proto: HTTP/1.1
35 proto_major: 1
36 proto_minor: 1
37 content_length: 776
38 host: generativelanguage.googleapis.com
39 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"
40 headers:
41 Content-Type:
42 - application/json
43 User-Agent:
44 - google-genai-sdk/1.23.0 gl-go/go1.25.0
45 url: https://generativelanguage.googleapis.com/v1beta/models/gemini-2.5-pro:generateContent
46 method: POST
47 response:
48 proto: HTTP/2.0
49 proto_major: 2
50 proto_minor: 0
51 content_length: -1
52 uncompressed: true
53 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"
54 headers:
55 Content-Type:
56 - application/json; charset=UTF-8
57 status: 200 OK
58 code: 200
59 duration: 2.006433542s