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: us-east5-aiplatform.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 - Charm-Fantasy/0.12.2 (https://charm.land/fantasy)
18 - google-genai-sdk/1.49.0 gl-go/go1.26.1
19 url: https://us-east5-aiplatform.googleapis.com/v1beta1/projects/fantasy-playground-472418/locations/us-east5/publishers/google/models/gemini-2.5-flash:generateContent
20 method: POST
21 response:
22 proto: HTTP/2.0
23 proto_major: 2
24 proto_minor: 0
25 content_length: -1
26 uncompressed: true
27 body: |
28 {
29 "candidates": [
30 {
31 "content": {
32 "role": "model",
33 "parts": [
34 {
35 "functionCall": {
36 "name": "weather",
37 "args": {
38 "location": "Florence,Italy"
39 }
40 },
41 "thoughtSignature": "CogCAY89a18llPaHtTc0RYmJYfqVzv67knJ0LLYW0uvvORLIbJ1go3t6f8qRUiA9NNmQPcujynZUv2T+UE/FdtglMNc4+tdvkjKNGp3YGstAa8NRco+/eUOWLdiYI793P8hzr2XCRmu7kPt6nQiLOauQseZ7Ldf/eYAHVZRVYmO1GcMtQYIpUI2n6w5eO1HIDdkB74FgZujPNJHICHGMt7nuI1M1t2yNkLh1v12Iht1NJEhu1JdkCGXQtrE9P1k6B2qlVG0+IL7el9ZsQKMs7Z0Cjqx8nIkjJnMGoBP8MQbP+mHxyNs6ClqGxQcy4gCtktP0/BB2Kh2ebnQA8Nu+W3bzKZxlx+G2IfoK"
42 }
43 ]
44 },
45 "finishReason": "STOP",
46 "avgLogprobs": -2.0499895095825194
47 }
48 ],
49 "usageMetadata": {
50 "promptTokenCount": 28,
51 "candidatesTokenCount": 5,
52 "totalTokenCount": 85,
53 "trafficType": "ON_DEMAND",
54 "promptTokensDetails": [
55 {
56 "modality": "TEXT",
57 "tokenCount": 28
58 }
59 ],
60 "candidatesTokensDetails": [
61 {
62 "modality": "TEXT",
63 "tokenCount": 5
64 }
65 ],
66 "thoughtsTokenCount": 52
67 },
68 "modelVersion": "gemini-2.5-flash",
69 "createTime": "2026-03-12T18:05:57.737661Z",
70 "responseId": "hQCzaf2CLfmew-UP9PGpKQ"
71 }
72 headers:
73 Content-Type:
74 - application/json; charset=UTF-8
75 status: 200 OK
76 code: 200
77 duration: 1.09585s
78- id: 1
79 request:
80 proto: HTTP/1.1
81 proto_major: 1
82 proto_minor: 1
83 content_length: 1100
84 host: us-east5-aiplatform.googleapis.com
85 body: |
86 {"contents":[{"parts":[{"text":"What's the weather in Florence,Italy?"}],"role":"user"},{"parts":[{"functionCall":{"args":{"location":"Florence,Italy"},"id":"1","name":"weather"},"thoughtSignature":"CogCAY89a18llPaHtTc0RYmJYfqVzv67knJ0LLYW0uvvORLIbJ1go3t6f8qRUiA9NNmQPcujynZUv2T+UE/FdtglMNc4+tdvkjKNGp3YGstAa8NRco+/eUOWLdiYI793P8hzr2XCRmu7kPt6nQiLOauQseZ7Ldf/eYAHVZRVYmO1GcMtQYIpUI2n6w5eO1HIDdkB74FgZujPNJHICHGMt7nuI1M1t2yNkLh1v12Iht1NJEhu1JdkCGXQtrE9P1k6B2qlVG0+IL7el9ZsQKMs7Z0Cjqx8nIkjJnMGoBP8MQbP+mHxyNs6ClqGxQcy4gCtktP0/BB2Kh2ebnQA8Nu+W3bzKZxlx+G2IfoK"}],"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"}}]}]}
87 headers:
88 Content-Type:
89 - application/json
90 User-Agent:
91 - Charm-Fantasy/0.12.2 (https://charm.land/fantasy)
92 - google-genai-sdk/1.49.0 gl-go/go1.26.1
93 url: https://us-east5-aiplatform.googleapis.com/v1beta1/projects/fantasy-playground-472418/locations/us-east5/publishers/google/models/gemini-2.5-flash:generateContent
94 method: POST
95 response:
96 proto: HTTP/2.0
97 proto_major: 2
98 proto_minor: 0
99 content_length: -1
100 uncompressed: true
101 body: |
102 {
103 "candidates": [
104 {
105 "content": {
106 "role": "model",
107 "parts": [
108 {
109 "text": "The weather in Florence,Italy is 40 C."
110 }
111 ]
112 },
113 "finishReason": "STOP",
114 "avgLogprobs": -0.1068742573261261
115 }
116 ],
117 "usageMetadata": {
118 "promptTokenCount": 90,
119 "candidatesTokenCount": 12,
120 "totalTokenCount": 102,
121 "trafficType": "ON_DEMAND",
122 "promptTokensDetails": [
123 {
124 "modality": "TEXT",
125 "tokenCount": 90
126 }
127 ],
128 "candidatesTokensDetails": [
129 {
130 "modality": "TEXT",
131 "tokenCount": 12
132 }
133 ]
134 },
135 "modelVersion": "gemini-2.5-flash",
136 "createTime": "2026-03-12T18:05:58.832195Z",
137 "responseId": "hgCzacPlMt2Rt8gP1vXiYA"
138 }
139 headers:
140 Content-Type:
141 - application/json; charset=UTF-8
142 status: 200 OK
143 code: 200
144 duration: 615.291833ms