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 - google-genai-sdk/1.23.0 gl-go/go1.25.1
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": "add",
35 "args": {
36 "a": 2,
37 "b": 3
38 }
39 },
40 "thoughtSignature": "CuQFADAxMjPxsJR9toWWnUfIQFL4+a3a3TWJc2aElVgfba0XCZa46jIcj060TCXh0Mb3Lk67jSTZpDpBGoftUak55wpLE14yvA/zCS135HKExtymOMVOniuL4C2o2Uj6MmECZRfLk0ihCSap/oNyqcZijc+L1lvBh0UTH1FsfQgoTuRCpdkxfFYTX+TVgfwuct4QAoWsU+UuGr+Bh5MgVPyP4iVe6c3g8zrw0F2sm8jNXpwG3ymsZzZou2zZYl1s6yEXlTiQSqL6ZC+D862pT44cRaiG/gvCGRsluyW4/U0cwRmyGMEqmraUnTgwWhBp2UbcKwGjwn/UO9kUGMObS3j8YUaiGRlhv5HXxQpKEpVwmTawBgcdVjV7JI+W2Kn81dY4GtF2KMDqXuDvXyakh3GAjkXqtVGHU4oqOS/unBUGP9Skkmo3CX8Q1oaZO2uPBmF2XkQKVR1VcSRQ8t9eNXo7ps1LcPLw2vejhdxVl7GlWN+4Gq36R8EVroBF2EUhCAquPZi/F9wyw69ISGyc74uSpxldhgfXCrBc4ZBkX9mOrEeefTxZZRYUfFyhjhjCfXmkm1mZyDAJWsiVqEPjli9n7ze1Nfm6xpclH5s/sF7ehiaR7UzsyoIYDNdJEBj4Oel689uKX6BX0/RMPYy3x/7b8313MCTjRbng3F53nJ8X/86TZ6/oc3BREuZ/V1WMhmtvxoyhxkkkwqszFMEGvovN8WcBbhxOhJSxSsN1GX/Ml8s/B/j6ltWK9hTTzq2tjAXkr8IAExCFZKXI8t0YPnQPtFwthEhr/uHwfax2AevlH1coqdzsW8ji5KWFu5b9A97/plyTR3p9LZ0eQu5Axp7NPlXty1Ee+rHqHztKSGq4WAdLgJwrN12lAMMDl2D4xYEAqI5Kxp7rMQAmt3tEwUPpGHh9ppF5xhlkAVstu0a9KRiHCQOac0MM2fJhj8/IbwrExkkbdnBdlybN+s5NjJ43vftZ0q4="
41 },
42 {
43 "functionCall": {
44 "name": "multiply",
45 "args": {
46 "b": 3,
47 "a": 2
48 }
49 }
50 }
51 ],
52 "role": "model"
53 },
54 "finishReason": "STOP",
55 "index": 0
56 }
57 ],
58 "usageMetadata": {
59 "promptTokenCount": 125,
60 "candidatesTokenCount": 36,
61 "totalTokenCount": 359,
62 "promptTokensDetails": [
63 {
64 "modality": "TEXT",
65 "tokenCount": 125
66 }
67 ],
68 "thoughtsTokenCount": 198
69 },
70 "modelVersion": "gemini-2.5-pro",
71 "responseId": "B3PWaMOZIoq8kdUPytqTAQ"
72 }
73 headers:
74 Content-Type:
75 - application/json; charset=UTF-8
76 status: 200 OK
77 code: 200
78 duration: 4.136286208s
79- id: 1
80 request:
81 proto: HTTP/1.1
82 proto_major: 1
83 proto_minor: 1
84 content_length: 1173
85 host: generativelanguage.googleapis.com
86 body: |
87 {"contents":[{"parts":[{"text":"Add and multiply the number 2 and 3"}],"role":"user"},{"parts":[{"functionCall":{"args":{"a":2,"b":3},"id":"add","name":"add"}},{"functionCall":{"args":{"a":2,"b":3},"id":"multiply","name":"multiply"}}],"role":"model"},{"parts":[{"functionResponse":{"id":"add","name":"add","response":{"result":"5"}}},{"functionResponse":{"id":"multiply","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"}}]}]}
88 headers:
89 Content-Type:
90 - application/json
91 User-Agent:
92 - google-genai-sdk/1.23.0 gl-go/go1.25.1
93 url: https://generativelanguage.googleapis.com/v1beta/models/gemini-2.5-pro: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 "parts": [
107 {
108 "text": "I have added and multiplied the numbers 2 and 3. The result of the addition is 5, and the result of the multiplication is 6.\n"
109 }
110 ],
111 "role": "model"
112 },
113 "finishReason": "STOP",
114 "index": 0
115 }
116 ],
117 "usageMetadata": {
118 "promptTokenCount": 185,
119 "candidatesTokenCount": 32,
120 "totalTokenCount": 217,
121 "promptTokensDetails": [
122 {
123 "modality": "TEXT",
124 "tokenCount": 185
125 }
126 ]
127 },
128 "modelVersion": "gemini-2.5-pro",
129 "responseId": "CXPWaK2IFtmAkdUP6o2M6As"
130 }
131 headers:
132 Content-Type:
133 - application/json; charset=UTF-8
134 status: 200 OK
135 code: 200
136 duration: 1.801805917s