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: 481
10 host: generativelanguage.googleapis.com
11 body: "{\"contents\":[{\"parts\":[{\"text\":\"What's the weather in Florence?\"}],\"role\":\"user\"}],\"generationConfig\":{},\"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.24.5
17 url: https://generativelanguage.googleapis.com/v1beta/models/gemini-2.5-flash: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 \"functionCall\": {\n \"name\": \"weather\",\n \"args\": {\n \"location\": \"Florence\"\n }\n },\n \"thoughtSignature\": \"CuoBAVSoXO61VKMhhJ8LyVTCpi9Wo5Mak4xOizBZB9m9DlJngMKxObtT2VSXeZoBWIjXv7MfNZy0wldQImsslSMFK7HGKWc84fxnvkzNydv9MJSXSD+PcNKDSgPbthGCY4nt5PVxkM4DKYvW+k3YC+yTOHzKwr30SMig0YXpYQ7RUHOk5Saz8hwegYyWR/nVoGpkDq+1vQRB5vaU2RZbTlW77yFalUgAPv6uKgGArCKNbSCdhA+bOXRhAlsc8FwRF5iEzwYQSlkaACtp3MntyPr5AWHJageAtUjujoku9ZiObIX7hJ17gnaCY3NA\"\n }\n ],\n \"role\": \"model\"\n },\n \"finishReason\": \"STOP\",\n \"index\": 0\n }\n ],\n \"usageMetadata\": {\n \"promptTokenCount\": 52,\n \"candidatesTokenCount\": 13,\n \"totalTokenCount\": 111,\n \"promptTokensDetails\": [\n {\n \"modality\": \"TEXT\",\n \"tokenCount\": 52\n }\n ],\n \"thoughtsTokenCount\": 46\n },\n \"modelVersion\": \"gemini-2.5-flash\",\n \"responseId\": \"_0i7aODLOP7gz7IPpObKgAc\"\n}\n"
26 headers:
27 Content-Type:
28 - application/json; charset=UTF-8
29 status: 200 OK
30 code: 200
31 duration: 866.858875ms
32- id: 1
33 request:
34 proto: HTTP/1.1
35 proto_major: 1
36 proto_minor: 1
37 content_length: 670
38 host: generativelanguage.googleapis.com
39 body: "{\"contents\":[{\"parts\":[{\"text\":\"What's the weather in Florence?\"}],\"role\":\"user\"},{\"parts\":[{\"functionCall\":{\"args\":{\"location\":\"Florence\"},\"name\":\"weather\"}}],\"role\":\"model\"},{\"parts\":[{\"functionResponse\":{\"name\":\"weather\",\"response\":{\"result\":\"40 C\"}}}],\"role\":\"user\"}],\"generationConfig\":{},\"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.24.5
45 url: https://generativelanguage.googleapis.com/v1beta/models/gemini-2.5-flash: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\": \"The weather in Florence is 40 C.\"\n }\n ],\n \"role\": \"model\"\n },\n \"finishReason\": \"STOP\",\n \"index\": 0\n }\n ],\n \"usageMetadata\": {\n \"promptTokenCount\": 80,\n \"candidatesTokenCount\": 10,\n \"totalTokenCount\": 90,\n \"promptTokensDetails\": [\n {\n \"modality\": \"TEXT\",\n \"tokenCount\": 80\n }\n ]\n },\n \"modelVersion\": \"gemini-2.5-flash\",\n \"responseId\": \"AEm7aKbpJdDVz7IPlO776Ak\"\n}\n"
54 headers:
55 Content-Type:
56 - application/json; charset=UTF-8
57 status: 200 OK
58 code: 200
59 duration: 688.650291ms