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 form:
13 alt:
14 - sse
15 headers:
16 Content-Type:
17 - application/json
18 User-Agent:
19 - google-genai-sdk/1.23.0 gl-go/go1.25.0
20 url: https://generativelanguage.googleapis.com/v1beta/models/gemini-2.5-pro:streamGenerateContent?alt=sse
21 method: POST
22 response:
23 proto: HTTP/2.0
24 proto_major: 2
25 proto_minor: 0
26 content_length: -1
27 body: "data: {\"candidates\": [{\"content\": {\"parts\": [{\"text\": \"**Determining Weather Parameters**\\n\\nI've determined that the user's request, \\\"weather in Florence, Italy,\\\" perfectly aligns with the `weather.get_weather` function. It seems the `location` parameter is the key, and I'll confidently set it to \\\"Florence, Italy\\\".\\n\\n\\n\",\"thought\": true}],\"role\": \"model\"},\"index\": 0}],\"usageMetadata\": {\"promptTokenCount\": 54,\"totalTokenCount\": 121,\"promptTokensDetails\": [{\"modality\": \"TEXT\",\"tokenCount\": 54}],\"thoughtsTokenCount\": 67},\"modelVersion\": \"gemini-2.5-pro\",\"responseId\": \"zZHKaL2DMrPTvdIP4aHWyAs\"}\r\n\r\ndata: {\"candidates\": [{\"content\": {\"parts\": [{\"functionCall\": {\"name\": \"weather\",\"args\": {\"location\": \"Florence, Italy\"}},\"thoughtSignature\": \"CiIB0e2Kb+4o560+ejjFBllU8TlXrgq4/b/tb77clkkTfKwtCmcB0e2Kb1IrE0Kd0PSfakpKlsp4JG0j3GDD1xu8po3uW1bBSFXZqOXycsUfeT7p/narEgT6HIrPBNkwA1qVwPeAj4D/jUbhIY2Oj2lS8ysNnQeqytNstgmTw32h9vbrhhvOcaH6IH1dCocBAdHtim8NodjIJ2/KTN7Ujms6FtiMUYBQHquMPWyGvJlCrwy2HjucHBKXc4u9og3+2Sd1BKC06BSuzCMiAIF5WqLBhnpTQSBqAoJQmpa856a1FUdmusVWLunaMM1HOuLlZCGNp0KYekg5i6swmIVyAzYOn/4HrEant/3HN8U0q7cPpyfFulYZCnAB0e2Kbxs+yhyWd5uvIZBXkefbF2xrggIwwWmG5FoCMXkhf9fTrrT24QGyHtBDZtjO/+VFvchpcv3XJC11Mfx+T9NpkWFKEQ78DFVVejHgyGEDGkE41mS+da0ejxpAXnHWYsh8Nbz5w9fkGJESlaqK\"}],\"role\": \"model\"},\"finishReason\": \"STOP\",\"index\": 0}],\"usageMetadata\": {\"promptTokenCount\": 54,\"candidatesTokenCount\": 14,\"totalTokenCount\": 135,\"promptTokensDetails\": [{\"modality\": \"TEXT\",\"tokenCount\": 54}],\"thoughtsTokenCount\": 67},\"modelVersion\": \"gemini-2.5-pro\",\"responseId\": \"zZHKaL2DMrPTvdIP4aHWyAs\"}\r\n\r\n"
28 headers:
29 Content-Type:
30 - text/event-stream
31 status: 200 OK
32 code: 200
33 duration: 3.416265375s
34- id: 1
35 request:
36 proto: HTTP/1.1
37 proto_major: 1
38 proto_minor: 1
39 content_length: 776
40 host: generativelanguage.googleapis.com
41 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"
42 form:
43 alt:
44 - sse
45 headers:
46 Content-Type:
47 - application/json
48 User-Agent:
49 - google-genai-sdk/1.23.0 gl-go/go1.25.0
50 url: https://generativelanguage.googleapis.com/v1beta/models/gemini-2.5-pro:streamGenerateContent?alt=sse
51 method: POST
52 response:
53 proto: HTTP/2.0
54 proto_major: 2
55 proto_minor: 0
56 content_length: -1
57 body: "data: {\"candidates\": [{\"content\": {\"parts\": [{\"text\": \"The\"}],\"role\": \"model\"},\"index\": 0}],\"usageMetadata\": {\"promptTokenCount\": 84,\"candidatesTokenCount\": 1,\"totalTokenCount\": 85,\"promptTokensDetails\": [{\"modality\": \"TEXT\",\"tokenCount\": 84}]},\"modelVersion\": \"gemini-2.5-pro\",\"responseId\": \"0pHKaOvQBIXrvdIP44SHgAQ\"}\r\n\r\ndata: {\"candidates\": [{\"content\": {\"parts\": [{\"text\": \" weather in Florence, Italy is 40 degrees Celsius. \\n\"}],\"role\": \"model\"},\"finishReason\": \"STOP\",\"index\": 0}],\"usageMetadata\": {\"promptTokenCount\": 84,\"candidatesTokenCount\": 13,\"totalTokenCount\": 97,\"promptTokensDetails\": [{\"modality\": \"TEXT\",\"tokenCount\": 84}]},\"modelVersion\": \"gemini-2.5-pro\",\"responseId\": \"0pHKaOvQBIXrvdIP44SHgAQ\"}\r\n\r\n"
58 headers:
59 Content-Type:
60 - text/event-stream
61 status: 200 OK
62 code: 200
63 duration: 2.557538458s