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: 509
10 host: generativelanguage.googleapis.com
11 body: |
12 {"contents":[{"parts":[{"text":"What's the weather in Florence,Italy?"}],"role":"user"}],"generationConfig":{"maxOutputTokens":4000},"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"}}]}]}
13 headers:
14 Content-Type:
15 - application/json
16 User-Agent:
17 - google-genai-sdk/1.29.0 gl-go/go1.25.1
18 url: https://generativelanguage.googleapis.com/v1beta/models/gemini-2.5-pro:generateContent
19 method: POST
20 response:
21 proto: HTTP/2.0
22 proto_major: 2
23 proto_minor: 0
24 content_length: -1
25 uncompressed: true
26 body: |
27 {
28 "candidates": [
29 {
30 "content": {
31 "parts": [
32 {
33 "functionCall": {
34 "name": "weather",
35 "args": {
36 "location": "Florence, Italy"
37 }
38 },
39 "thoughtSignature": "CoUDAdHtim/bgtT9Odj2/r1QcjzgE9Zr7qHxmcWWEWix5kqp2At0qQunrv0dH5Lpnh6leBLIjYTZh9Zws11pzYaMxpo8FuY9ajBeG2xcYNkBtmCpNTwXNMODKv90J0jq6PM3RsddM4a0yqfcr8ES2PEtD6XY5KJBdtmcdgIZI6T0S03ITXOXfcwtAoOP5Jm0cdl2YmnvafVbJYCnNlZjuOvpGCMaJIsW8fG9lJZRJKDeg7v80t5sN91085qOP1ZdfhiXxOB/GumlRYO/u35IK3Me35wJI+oFCb1tFxEK7w6HrCBBXduvZqneGgwZyMH+clrRZ6euFhy5uF5xUJPPfeXxLJIw40x6l1bWjAmOtTtiQXFmTSYLerz1iZeFPnZxzbRz0Vr9k4kUBjEEppCgKHm/VN0dfsG0bmrRBIgkJ166xlhwZBJu6cic2Iabw50Sow/VLhzYCXuLQ7lfcL2g5s6arkIAEY62N9gIYpGNRWWh9qghP47ouM5cKzCe1WVWAHIXcs1XBrU="
40 }
41 ],
42 "role": "model"
43 },
44 "finishReason": "STOP",
45 "index": 0,
46 "finishMessage": "Model generated function call(s)."
47 }
48 ],
49 "usageMetadata": {
50 "promptTokenCount": 54,
51 "candidatesTokenCount": 15,
52 "totalTokenCount": 162,
53 "promptTokensDetails": [
54 {
55 "modality": "TEXT",
56 "tokenCount": 54
57 }
58 ],
59 "thoughtsTokenCount": 93
60 },
61 "modelVersion": "gemini-2.5-pro",
62 "responseId": "dNH5aK6UFNX1kdUPluXGkAs"
63 }
64 headers:
65 Content-Type:
66 - application/json; charset=UTF-8
67 status: 200 OK
68 code: 200
69 duration: 3.179773083s
70- id: 1
71 request:
72 proto: HTTP/1.1
73 proto_major: 1
74 proto_minor: 1
75 content_length: 723
76 host: generativelanguage.googleapis.com
77 body: |
78 {"contents":[{"parts":[{"text":"What's the weather in Florence,Italy?"}],"role":"user"},{"parts":[{"functionCall":{"args":{"location":"Florence, Italy"},"id":"1","name":"weather"}}],"role":"model"},{"parts":[{"functionResponse":{"id":"1","name":"weather","response":{"result":"40 C"}}}],"role":"user"}],"generationConfig":{"maxOutputTokens":4000},"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"}}]}]}
79 headers:
80 Content-Type:
81 - application/json
82 User-Agent:
83 - google-genai-sdk/1.29.0 gl-go/go1.25.1
84 url: https://generativelanguage.googleapis.com/v1beta/models/gemini-2.5-pro:generateContent
85 method: POST
86 response:
87 proto: HTTP/2.0
88 proto_major: 2
89 proto_minor: 0
90 content_length: -1
91 uncompressed: true
92 body: |
93 {
94 "candidates": [
95 {
96 "content": {
97 "parts": [
98 {
99 "text": "The weather in Florence, Italy is 40 C. \n"
100 }
101 ],
102 "role": "model"
103 },
104 "finishReason": "STOP",
105 "index": 0
106 }
107 ],
108 "usageMetadata": {
109 "promptTokenCount": 84,
110 "candidatesTokenCount": 12,
111 "totalTokenCount": 96,
112 "promptTokensDetails": [
113 {
114 "modality": "TEXT",
115 "tokenCount": 84
116 }
117 ]
118 },
119 "modelVersion": "gemini-2.5-pro",
120 "responseId": "d9H5aJKyGI3rnsEP9MvF6Qs"
121 }
122 headers:
123 Content-Type:
124 - application/json; charset=UTF-8
125 status: 200 OK
126 code: 200
127 duration: 3.521672167s