multi_tool.yaml

  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: 834
 10    host: ""
 11    body: '{"max_output_tokens":4000,"store":false,"input":[{"content":"You are a helpful assistant. CRITICAL: Always use both add and multiply at the same time ALWAYS.","role":"system"},{"content":[{"text":"Add and multiply the number 2 and 3","type":"input_text"}],"role":"user"}],"model":"gpt-4o","tool_choice":"auto","tools":[{"strict":false,"parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"},"name":"add","description":"Add two numbers","type":"function"},{"strict":false,"parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"},"name":"multiply","description":"Multiply two numbers","type":"function"}]}'
 12    headers:
 13      Accept:
 14      - application/json
 15      Content-Type:
 16      - application/json
 17      User-Agent:
 18      - Charm-Fantasy/0.12.2 (https://charm.land/fantasy)
 19    url: https://api.openai.com/v1/responses
 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        "id": "resp_004f198d0fcb211c0169b30159ecc081959941b172e908aa4a",
 30        "object": "response",
 31        "created_at": 1773338969,
 32        "status": "completed",
 33        "background": false,
 34        "billing": {
 35          "payer": "developer"
 36        },
 37        "completed_at": 1773338971,
 38        "error": null,
 39        "frequency_penalty": 0.0,
 40        "incomplete_details": null,
 41        "instructions": null,
 42        "max_output_tokens": 4000,
 43        "max_tool_calls": null,
 44        "model": "gpt-4o-2024-08-06",
 45        "output": [
 46          {
 47            "id": "fc_004f198d0fcb211c0169b3015b67188195a8d6f2ca1b65a49d",
 48            "type": "function_call",
 49            "status": "completed",
 50            "arguments": "{\"a\":2,\"b\":3}",
 51            "call_id": "call_PpY2vL7P7LXhDTGnOt7QloYN",
 52            "name": "add"
 53          },
 54          {
 55            "id": "fc_004f198d0fcb211c0169b3015b67288195930283b886688c85",
 56            "type": "function_call",
 57            "status": "completed",
 58            "arguments": "{\"a\":2,\"b\":3}",
 59            "call_id": "call_TDdcDMTBBI92rFgbWw4brhBy",
 60            "name": "multiply"
 61          }
 62        ],
 63        "parallel_tool_calls": true,
 64        "presence_penalty": 0.0,
 65        "previous_response_id": null,
 66        "prompt_cache_key": null,
 67        "prompt_cache_retention": null,
 68        "reasoning": {
 69          "effort": null,
 70          "summary": null
 71        },
 72        "safety_identifier": null,
 73        "service_tier": "default",
 74        "store": false,
 75        "temperature": 1.0,
 76        "text": {
 77          "format": {
 78            "type": "text"
 79          },
 80          "verbosity": "medium"
 81        },
 82        "tool_choice": "auto",
 83        "tools": [
 84          {
 85            "type": "function",
 86            "description": "Add two numbers",
 87            "name": "add",
 88            "parameters": {
 89              "properties": {
 90                "a": {
 91                  "description": "first number",
 92                  "type": "integer"
 93                },
 94                "b": {
 95                  "description": "second number",
 96                  "type": "integer"
 97                }
 98              },
 99              "required": [
100                "a",
101                "b"
102              ],
103              "type": "object"
104            },
105            "strict": false
106          },
107          {
108            "type": "function",
109            "description": "Multiply two numbers",
110            "name": "multiply",
111            "parameters": {
112              "properties": {
113                "a": {
114                  "description": "first number",
115                  "type": "integer"
116                },
117                "b": {
118                  "description": "second number",
119                  "type": "integer"
120                }
121              },
122              "required": [
123                "a",
124                "b"
125              ],
126              "type": "object"
127            },
128            "strict": false
129          }
130        ],
131        "top_logprobs": 0,
132        "top_p": 1.0,
133        "truncation": "disabled",
134        "usage": {
135          "input_tokens": 108,
136          "input_tokens_details": {
137            "cached_tokens": 0
138          },
139          "output_tokens": 51,
140          "output_tokens_details": {
141            "reasoning_tokens": 0
142          },
143          "total_tokens": 159
144        },
145        "user": null,
146        "metadata": {}
147      }
148    headers:
149      Content-Type:
150      - application/json
151    status: 200 OK
152    code: 200
153    duration: 2.647188375s
154- id: 1
155  request:
156    proto: HTTP/1.1
157    proto_major: 1
158    proto_minor: 1
159    content_length: 1261
160    host: ""
161    body: '{"max_output_tokens":4000,"store":false,"input":[{"content":"You are a helpful assistant. CRITICAL: Always use both add and multiply at the same time ALWAYS.","role":"system"},{"content":[{"text":"Add and multiply the number 2 and 3","type":"input_text"}],"role":"user"},{"arguments":"\"{\\\"a\\\":2,\\\"b\\\":3}\"","call_id":"call_PpY2vL7P7LXhDTGnOt7QloYN","name":"add","type":"function_call"},{"arguments":"\"{\\\"a\\\":2,\\\"b\\\":3}\"","call_id":"call_TDdcDMTBBI92rFgbWw4brhBy","name":"multiply","type":"function_call"},{"call_id":"call_PpY2vL7P7LXhDTGnOt7QloYN","output":"5","type":"function_call_output"},{"call_id":"call_TDdcDMTBBI92rFgbWw4brhBy","output":"6","type":"function_call_output"}],"model":"gpt-4o","tool_choice":"auto","tools":[{"strict":false,"parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"},"name":"add","description":"Add two numbers","type":"function"},{"strict":false,"parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"},"name":"multiply","description":"Multiply two numbers","type":"function"}]}'
162    headers:
163      Accept:
164      - application/json
165      Content-Type:
166      - application/json
167      User-Agent:
168      - Charm-Fantasy/0.12.2 (https://charm.land/fantasy)
169    url: https://api.openai.com/v1/responses
170    method: POST
171  response:
172    proto: HTTP/2.0
173    proto_major: 2
174    proto_minor: 0
175    content_length: -1
176    uncompressed: true
177    body: |-
178      {
179        "id": "resp_0dba5e52c1794a190169b3015c6370819092abfbee309c7628",
180        "object": "response",
181        "created_at": 1773338972,
182        "status": "completed",
183        "background": false,
184        "billing": {
185          "payer": "developer"
186        },
187        "completed_at": 1773338973,
188        "error": null,
189        "frequency_penalty": 0.0,
190        "incomplete_details": null,
191        "instructions": null,
192        "max_output_tokens": 4000,
193        "max_tool_calls": null,
194        "model": "gpt-4o-2024-08-06",
195        "output": [
196          {
197            "id": "msg_0dba5e52c1794a190169b3015d467481908d0b632c9f281197",
198            "type": "message",
199            "status": "completed",
200            "content": [
201              {
202                "type": "output_text",
203                "annotations": [],
204                "logprobs": [],
205                "text": "The result of adding 2 and 3 is 5, and the result of multiplying them is 6."
206              }
207            ],
208            "role": "assistant"
209          }
210        ],
211        "parallel_tool_calls": true,
212        "presence_penalty": 0.0,
213        "previous_response_id": null,
214        "prompt_cache_key": null,
215        "prompt_cache_retention": null,
216        "reasoning": {
217          "effort": null,
218          "summary": null
219        },
220        "safety_identifier": null,
221        "service_tier": "default",
222        "store": false,
223        "temperature": 1.0,
224        "text": {
225          "format": {
226            "type": "text"
227          },
228          "verbosity": "medium"
229        },
230        "tool_choice": "auto",
231        "tools": [
232          {
233            "type": "function",
234            "description": "Add two numbers",
235            "name": "add",
236            "parameters": {
237              "properties": {
238                "a": {
239                  "description": "first number",
240                  "type": "integer"
241                },
242                "b": {
243                  "description": "second number",
244                  "type": "integer"
245                }
246              },
247              "required": [
248                "a",
249                "b"
250              ],
251              "type": "object"
252            },
253            "strict": false
254          },
255          {
256            "type": "function",
257            "description": "Multiply two numbers",
258            "name": "multiply",
259            "parameters": {
260              "properties": {
261                "a": {
262                  "description": "first number",
263                  "type": "integer"
264                },
265                "b": {
266                  "description": "second number",
267                  "type": "integer"
268                }
269              },
270              "required": [
271                "a",
272                "b"
273              ],
274              "type": "object"
275            },
276            "strict": false
277          }
278        ],
279        "top_logprobs": 0,
280        "top_p": 1.0,
281        "truncation": "disabled",
282        "usage": {
283          "input_tokens": 156,
284          "input_tokens_details": {
285            "cached_tokens": 0
286          },
287          "output_tokens": 25,
288          "output_tokens_details": {
289            "reasoning_tokens": 0
290          },
291          "total_tokens": 181
292        },
293        "user": null,
294        "metadata": {}
295      }
296    headers:
297      Content-Type:
298      - application/json
299    status: 200 OK
300    code: 200
301    duration: 1.938283875s