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: 826
10 host: us-east5-aiplatform.googleapis.com
11 body: |
12 {"contents":[{"parts":[{"text":"Add and multiply the number 2 and 3"}],"role":"user"}],"generationConfig":{"maxOutputTokens":4000},"systemInstruction":{"parts":[{"text":"You are a helpful assistant. CRITICAL: Always use both add and multiply at the same time ALWAYS."}],"role":"user"},"toolConfig":{"functionCallingConfig":{"mode":"AUTO"}},"tools":[{"functionDeclarations":[{"description":"Add two numbers","name":"add","parameters":{"properties":{"a":{"description":"first number","type":"INTEGER"},"b":{"description":"second number","type":"INTEGER"}},"required":["a","b"],"type":"OBJECT"}},{"description":"Multiply two numbers","name":"multiply","parameters":{"properties":{"a":{"description":"first number","type":"INTEGER"},"b":{"description":"second number","type":"INTEGER"}},"required":["a","b"],"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": "add",
37 "args": {
38 "b": 3,
39 "a": 2
40 }
41 },
42 "thoughtSignature": "CpICAY89a1+Gm+gqy5KEfxpOLwsLfsZBhMovtwfzDW0gEBgOw+bpm9YTJExW/7mXnG4xCDgpd8nOmWA92HX3KWO9umiAKQc6u+TQRe7xqOvAyCdNFjxBVUbzVh8pRroWFnwr3ceqt4+4vMSONorj6Agki5CZ0wl3XHlgxr7kEAMiVuka9Mdi2dYSBB2zfaKSZMHznl8uetDyUXnGvZj4GWPHsayBrFUqYeDko8GyzlqfpN2ZB3SjqobwjWw6L3QpABB613LYDHy52QaSbX3AFyr0YEE38lujZXqDtUmEyRs9v3I7fJ6jsTDUH9tmQ7vdvpp/pNzsfE/qnEP8PF0cGnkQg04x4nOcpK1oGzzhrs6seGYDVQ=="
43 },
44 {
45 "functionCall": {
46 "name": "multiply",
47 "args": {
48 "a": 2,
49 "b": 3
50 }
51 }
52 }
53 ]
54 },
55 "finishReason": "STOP",
56 "avgLogprobs": -1.3002447128295898
57 }
58 ],
59 "usageMetadata": {
60 "promptTokenCount": 61,
61 "candidatesTokenCount": 10,
62 "totalTokenCount": 141,
63 "trafficType": "ON_DEMAND",
64 "promptTokensDetails": [
65 {
66 "modality": "TEXT",
67 "tokenCount": 61
68 }
69 ],
70 "candidatesTokensDetails": [
71 {
72 "modality": "TEXT",
73 "tokenCount": 10
74 }
75 ],
76 "thoughtsTokenCount": 70
77 },
78 "modelVersion": "gemini-2.5-flash",
79 "createTime": "2026-03-12T18:06:01.734774Z",
80 "responseId": "iQCzabbsLKbEw-UP0tal0A8"
81 }
82 headers:
83 Content-Type:
84 - application/json; charset=UTF-8
85 status: 200 OK
86 code: 200
87 duration: 1.709144292s
88- id: 1
89 request:
90 proto: HTTP/1.1
91 proto_major: 1
92 proto_minor: 1
93 content_length: 1549
94 host: us-east5-aiplatform.googleapis.com
95 body: |
96 {"contents":[{"parts":[{"text":"Add and multiply the number 2 and 3"}],"role":"user"},{"parts":[{"functionCall":{"args":{"a":2,"b":3},"id":"1","name":"add"},"thoughtSignature":"CpICAY89a1+Gm+gqy5KEfxpOLwsLfsZBhMovtwfzDW0gEBgOw+bpm9YTJExW/7mXnG4xCDgpd8nOmWA92HX3KWO9umiAKQc6u+TQRe7xqOvAyCdNFjxBVUbzVh8pRroWFnwr3ceqt4+4vMSONorj6Agki5CZ0wl3XHlgxr7kEAMiVuka9Mdi2dYSBB2zfaKSZMHznl8uetDyUXnGvZj4GWPHsayBrFUqYeDko8GyzlqfpN2ZB3SjqobwjWw6L3QpABB613LYDHy52QaSbX3AFyr0YEE38lujZXqDtUmEyRs9v3I7fJ6jsTDUH9tmQ7vdvpp/pNzsfE/qnEP8PF0cGnkQg04x4nOcpK1oGzzhrs6seGYDVQ=="},{"functionCall":{"args":{"a":2,"b":3},"id":"2","name":"multiply"}}],"role":"model"},{"parts":[{"functionResponse":{"id":"1","name":"add","response":{"result":"5"}}},{"functionResponse":{"id":"2","name":"multiply","response":{"result":"6"}}}],"role":"user"}],"generationConfig":{"maxOutputTokens":4000},"systemInstruction":{"parts":[{"text":"You are a helpful assistant. CRITICAL: Always use both add and multiply at the same time ALWAYS."}],"role":"user"},"toolConfig":{"functionCallingConfig":{"mode":"AUTO"}},"tools":[{"functionDeclarations":[{"description":"Add two numbers","name":"add","parameters":{"properties":{"a":{"description":"first number","type":"INTEGER"},"b":{"description":"second number","type":"INTEGER"}},"required":["a","b"],"type":"OBJECT"}},{"description":"Multiply two numbers","name":"multiply","parameters":{"properties":{"a":{"description":"first number","type":"INTEGER"},"b":{"description":"second number","type":"INTEGER"}},"required":["a","b"],"type":"OBJECT"}}]}]}
97 headers:
98 Content-Type:
99 - application/json
100 User-Agent:
101 - Charm-Fantasy/0.12.2 (https://charm.land/fantasy)
102 - google-genai-sdk/1.49.0 gl-go/go1.26.1
103 url: https://us-east5-aiplatform.googleapis.com/v1beta1/projects/fantasy-playground-472418/locations/us-east5/publishers/google/models/gemini-2.5-flash:generateContent
104 method: POST
105 response:
106 proto: HTTP/2.0
107 proto_major: 2
108 proto_minor: 0
109 content_length: -1
110 uncompressed: true
111 body: |
112 {
113 "candidates": [
114 {
115 "content": {
116 "role": "model",
117 "parts": [
118 {
119 "text": "The sum of 2 and 3 is 5.\nThe product of 2 and 3 is 6."
120 }
121 ]
122 },
123 "finishReason": "STOP",
124 "avgLogprobs": -0.099674701690673828
125 }
126 ],
127 "usageMetadata": {
128 "promptTokenCount": 147,
129 "candidatesTokenCount": 25,
130 "totalTokenCount": 172,
131 "trafficType": "ON_DEMAND",
132 "promptTokensDetails": [
133 {
134 "modality": "TEXT",
135 "tokenCount": 147
136 }
137 ],
138 "candidatesTokensDetails": [
139 {
140 "modality": "TEXT",
141 "tokenCount": 25
142 }
143 ]
144 },
145 "modelVersion": "gemini-2.5-flash",
146 "createTime": "2026-03-12T18:06:03.432830Z",
147 "responseId": "iwCzab61GpbpotkPu6yy0QE"
148 }
149 headers:
150 Content-Type:
151 - application/json; charset=UTF-8
152 status: 200 OK
153 code: 200
154 duration: 612.9975ms