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.33.0 gl-go/go1.25.0
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": "CoUDAdHtim8N4HKZPr0LvOdoOCBZCvZIDq+277VOB/Ee7dBu8J4m0pT+8u9m55SqUFvQcQVSxjJEIvR/o6eUzbeSKwJ9s9MgEnQoNXUktpSUuiJ7HJhdapcQnZbCRPrcs+zdqSQGdXHdpjRguIVDRG+r5GnD40lYk1AurV31uEe6Jpox1MIfPxNOLnhuVDwjhAv2zqW0e6hf9ZtmlXk6qtIoLOnFxRAAx2NqZYA22kkoA0s0DtSTAUDQTMr+NrXTbOELd3ZeVjLBsWutkYNwIRWAnzNJ1il3A8xbmEh8YL4Uy+nH48ROgams6PCuxtxTEyOk0sAOKQkfid1STQfDO3VAoB4ne7cgNDh80y1fAo/5cXSGkeMPLqgyZr2jeIx7lWWWDaOHw/ieZDTaJGInBy5blOEkWxKl8mKKgAbvALOEFCdVDwFN+maw17w/Y0FtKWgk8zrdsM8naF/mBtGkulhMDoqjB0XNcIihur24NuD8vyifQl+s7MkkdctYLxdSXVFhfiB5D8w="
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": "DQgJaczjHfHAz7IPo92A4QY"
63 }
64 headers:
65 Content-Type:
66 - application/json; charset=UTF-8
67 status: 200 OK
68 code: 200
69 duration: 2.028702667s
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.33.0 gl-go/go1.25.0
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 degrees Celsius. \n"
100 }
101 ],
102 "role": "model"
103 },
104 "finishReason": "STOP",
105 "index": 0
106 }
107 ],
108 "usageMetadata": {
109 "promptTokenCount": 84,
110 "candidatesTokenCount": 13,
111 "totalTokenCount": 97,
112 "promptTokensDetails": [
113 {
114 "modality": "TEXT",
115 "tokenCount": 84
116 }
117 ]
118 },
119 "modelVersion": "gemini-2.5-pro",
120 "responseId": "DggJacXrMP2Hz7IP-sawqQ0"
121 }
122 headers:
123 Content-Type:
124 - application/json; charset=UTF-8
125 status: 200 OK
126 code: 200
127 duration: 1.309785584s