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: generativelanguage.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://generativelanguage.googleapis.com/v1beta/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 "parts": [
33 {
34 "functionCall": {
35 "name": "add",
36 "args": {
37 "a": 2,
38 "b": 3
39 }
40 },
41 "thoughtSignature": "CuwBAb4+9vtZI+lrRvvljZUdJ6DU+6mx0MOBuaHeyYvynuM3jWA6+2QLszYeEbDE8DiwXn/ZAT193VbikJsMKQhtnfKfRBEBOX0+ubVHHOFBFJQtdbOgB/rUa60EsYG3tEz3IfShPYThhVkawFMK6pypIEeFkR6fz4ORTLkqD2LIDzASds2DgReWzjuQ5TxX2rVB/ZyGarvY5Wvg2TkeK2hAcVdJIjwLZFtxTKnd2DU6smy4Elld36CV8HsEd1P+qbChmOc7V473H9RyZbkojG0ItvQepZX7c0qcJRs2xGpz68rno2xpy+XlQOfnUXg="
42 },
43 {
44 "functionCall": {
45 "name": "multiply",
46 "args": {
47 "a": 2,
48 "b": 3
49 }
50 }
51 }
52 ],
53 "role": "model"
54 },
55 "finishReason": "STOP",
56 "index": 0,
57 "finishMessage": "Model generated function call(s)."
58 }
59 ],
60 "usageMetadata": {
61 "promptTokenCount": 125,
62 "candidatesTokenCount": 36,
63 "totalTokenCount": 234,
64 "promptTokensDetails": [
65 {
66 "modality": "TEXT",
67 "tokenCount": 125
68 }
69 ],
70 "thoughtsTokenCount": 73
71 },
72 "modelVersion": "gemini-2.5-flash",
73 "responseId": "WwCzadOqH-mtz7IP8_Se8Ak"
74 }
75 headers:
76 Content-Type:
77 - application/json; charset=UTF-8
78 status: 200 OK
79 code: 200
80 duration: 1.125489417s
81- id: 1
82 request:
83 proto: HTTP/1.1
84 proto_major: 1
85 proto_minor: 1
86 content_length: 1497
87 host: generativelanguage.googleapis.com
88 body: |
89 {"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":"CuwBAb4+9vtZI+lrRvvljZUdJ6DU+6mx0MOBuaHeyYvynuM3jWA6+2QLszYeEbDE8DiwXn/ZAT193VbikJsMKQhtnfKfRBEBOX0+ubVHHOFBFJQtdbOgB/rUa60EsYG3tEz3IfShPYThhVkawFMK6pypIEeFkR6fz4ORTLkqD2LIDzASds2DgReWzjuQ5TxX2rVB/ZyGarvY5Wvg2TkeK2hAcVdJIjwLZFtxTKnd2DU6smy4Elld36CV8HsEd1P+qbChmOc7V473H9RyZbkojG0ItvQepZX7c0qcJRs2xGpz68rno2xpy+XlQOfnUXg="},{"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"}}]}]}
90 headers:
91 Content-Type:
92 - application/json
93 User-Agent:
94 - Charm-Fantasy/0.12.2 (https://charm.land/fantasy)
95 - google-genai-sdk/1.49.0 gl-go/go1.26.1
96 url: https://generativelanguage.googleapis.com/v1beta/models/gemini-2.5-flash:generateContent
97 method: POST
98 response:
99 proto: HTTP/2.0
100 proto_major: 2
101 proto_minor: 0
102 content_length: -1
103 uncompressed: true
104 body: |
105 {
106 "candidates": [
107 {
108 "content": {
109 "parts": [
110 {
111 "text": "The sum of 2 and 3 is 5. The product of 2 and 3 is 6."
112 }
113 ],
114 "role": "model"
115 },
116 "finishReason": "STOP",
117 "index": 0
118 }
119 ],
120 "usageMetadata": {
121 "promptTokenCount": 185,
122 "candidatesTokenCount": 24,
123 "totalTokenCount": 209,
124 "promptTokensDetails": [
125 {
126 "modality": "TEXT",
127 "tokenCount": 185
128 }
129 ]
130 },
131 "modelVersion": "gemini-2.5-flash",
132 "responseId": "XACzab6NJ-Hqz7IP6avj8Qs"
133 }
134 headers:
135 Content-Type:
136 - application/json; charset=UTF-8
137 status: 200 OK
138 code: 200
139 duration: 918.09725ms