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: 853
10    host: ""
11    body: '{"messages":[{"content":"You are a helpful assistant. CRITICAL: Always use both add and multiply at the same time ALWAYS.","role":"system"},{"content":"Add and multiply the number 2 and 3","role":"user"}],"model":"openai/gpt-5","max_completion_tokens":4000,"tool_choice":"auto","tools":[{"function":{"name":"add","strict":false,"description":"Add two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"},{"function":{"name":"multiply","strict":false,"description":"Multiply two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"}],"usage":{"include":true}}'
12    headers:
13      Accept:
14      - application/json
15      Content-Type:
16      - application/json
17      User-Agent:
18      - OpenAI/Go 2.7.1
19    url: https://openrouter.ai/api/v1/chat/completions
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: "\n         \n\n         \n\n         \n\n         \n\n         \n\n         \n\n         \n\n         \n\n         \n\n         \n\n         \n\n         \n\n         \n\n         \n\n         \n\n         \n\n         \n\n         \n\n         \n\n         \n\n         \n\n         \n\n         \n\n         \n\n         \n\n         \n\n         \n\n         \n\n         \n{\"id\":\"gen-1773323924-57QbnghbXm2GvzEpqDiv\",\"object\":\"chat.completion\",\"created\":1773323924,\"model\":\"openai/gpt-5-2025-08-07\",\"provider\":\"OpenAI\",\"system_fingerprint\":null,\"choices\":[{\"index\":0,\"logprobs\":null,\"finish_reason\":\"tool_calls\",\"native_finish_reason\":\"completed\",\"message\":{\"role\":\"assistant\",\"content\":null,\"refusal\":null,\"reasoning\":\"**Calculating sum and product**\\n\\nI need to respond to the user's request to add and multiply the numbers 2 and 3. The instructions clearly state that I should use both operations simultaneously, so I’ll utilize the multi_tool_use.parallel function. I’ll run the add tool with parameters {a: 2, b: 3} and the multiply tool with the same parameters. Once I get the results, I can present them concisely, saying “Sum: 5; Product: 6.”**Using parallel functions**\\n\\nI need to follow the instruction to always use both addition and multiplication at the same time. So, I'll use the parallel tool to ensure I'm running both operations together. It’s essential to stick to this guideline to provide what’s needed efficiently. Let me get that working correctly right away! This way, I can deliver the accurate results for the user's request seamlessly.\",\"tool_calls\":[{\"type\":\"function\",\"index\":0,\"id\":\"call_hxZ5lngdot9y8AfQa3spor2J\",\"function\":{\"name\":\"add\",\"arguments\":\"{\\\"a\\\":2,\\\"b\\\":3}\"}},{\"type\":\"function\",\"index\":1,\"id\":\"call_FfAnNULynr6w23E2ptBJNI0F\",\"function\":{\"name\":\"multiply\",\"arguments\":\"{\\\"a\\\":2,\\\"b\\\":3}\"}}],\"reasoning_details\":[{\"type\":\"reasoning.summary\",\"summary\":\"**Calculating sum and product**\\n\\nI need to respond to the user's request to add and multiply the numbers 2 and 3. The instructions clearly state that I should use both operations simultaneously, so I’ll utilize the multi_tool_use.parallel function. I’ll run the add tool with parameters {a: 2, b: 3} and the multiply tool with the same parameters. Once I get the results, I can present them concisely, saying “Sum: 5; Product: 6.”**Using parallel functions**\\n\\nI need to follow the instruction to always use both addition and multiplication at the same time. So, I'll use the parallel tool to ensure I'm running both operations together. It’s essential to stick to this guideline to provide what’s needed efficiently. Let me get that working correctly right away! This way, I can deliver the accurate results for the user's request seamlessly.\",\"format\":\"openai-responses-v1\",\"index\":0},{\"type\":\"reasoning.encrypted\",\"data\":\"gAAAAABpssagkg5555BU8eWgG1B8tAi6UUzyAFkqDnJ-cnFqHhRmc2bzWuxec_8gFNw9WN3zAMM3jh1X_2iQgKVJ0JT1DMhGpYN31kr_kyzX6dAWM6OPkg4vLu2c_6j949t0KIvhMbt1ZWLp0Ny9rm8Fh4YZ-H3b38WK-Q_F5NITjM4TyaOA-JJWoWmYboD_kC4jmeyh47liqSK5eqomZEnuqlsr-pP4O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BKn-_Z84tDH2F6K8lUOl49eV1C3Y3kquOI1jpD9SICXB4dhWsDSyNeMC24uiOOrf6de7zIBIRxw8H_Z8S9TrWJu8H7bc-ndkJHpMIc9Ywjz14HRjP-gBLyRnQxoawVZ68WWiL1Gj_6I_XLNw4BPvUYa2gBD0uToOwFCef3j_bWaZ6PMHo1qtIflQnxbws1UX4_mUh54CBq1damKvymlWJkqzmQggoD7JH-ym8fPoDCdDei8YfN4JVvLW16IuWJz_x_mAP5NcgPM8-P8caClDxQB1WHs4tKSURliL7-n6QKew_yAeOrav2PkscUHIOS0L8LEswSDtd2n92RfGbe9rSh7ct6s4bi9u1O2H5M3X0foTNtiamkFGii4N4jnQUxwF0-7xtdFUXQXOoiq-PVh3DFTy2BF75c6RjUeO1vBsZ6HE-HE_jQVnK7cefq6vw--ot4c0-QTY239_CUm5nSMZfzQHuaWs6NqCtkx9fWzstpFrZSr-hxHMUiaK7jlT9fO0GN-y6FuXL8D2SINANFs1ViSioYVskb5jgCOF_rvjHwRAx4uaJNP0ZevLdTCOzYIKVu67U2paHm7yEc6_YSVEGPmCErbDNnHU66PHoGc9uCPjpZgmNlwKVDS-tWQDcdfxpECy_bNmI2djLM6sanc2Xh-7S9fuP_jI9ShpGQLILIGIqItlIBxJLXn2Qm8IZpaMKQYdFLbA9D6NlGKSlIy4sxu073LcXrUVmIxTlfliUAuGP0E9I4xPXfmG8uK9628ysvvEMZzZIkyNPtCMsvbFWbmCjB5HAHgHCCsgP0NJaei44uFhmyYRhEvogsODUgv0eYS1N57bXKhVe0Gi6XATtk8XFGPmGJUNDS0yJ60VNV_xUr3vSdT5_Hl5DQCizA3WtVXIVs3gYJIA1CJQEfP8nvlN2JrODCOz\",\"format\":\"openai-responses-v1\",\"id\":\"rs_06113a4c35b40b110169b2c694f7608195bbc8eb5427d84429\",\"index\":1}]}}],\"usage\":{\"prompt_tokens\":113,\"completion_tokens\":286,\"total_tokens\":399,\"cost\":0.00300125,\"is_byok\":false,\"prompt_tokens_details\":{\"cached_tokens\":0,\"cache_write_tokens\":0,\"audio_tokens\":0,\"video_tokens\":0},\"cost_details\":{\"upstream_inference_cost\":0.00300125,\"upstream_inference_prompt_cost\":0.00014125,\"upstream_inference_completions_cost\":0.00286},\"completion_tokens_details\":{\"reasoning_tokens\":192,\"image_tokens\":0,\"audio_tokens\":0}}}"
28    headers:
29      Content-Type:
30      - application/json
31    status: 200 OK
32    code: 200
33    duration: 525.318167ms
34- id: 1
35  request:
36    proto: HTTP/1.1
37    proto_major: 1
38    proto_minor: 1
39    content_length: 3695
40    host: ""
41    body: '{"messages":[{"content":"You are a helpful assistant. CRITICAL: Always use both add and multiply at the same time ALWAYS.","role":"system"},{"content":"Add and multiply the number 2 and 3","role":"user"},{"tool_calls":[{"id":"call_hxZ5lngdot9y8AfQa3spor2J","function":{"arguments":"{\"a\":2,\"b\":3}","name":"add"},"type":"function"},{"id":"call_FfAnNULynr6w23E2ptBJNI0F","function":{"arguments":"{\"a\":2,\"b\":3}","name":"multiply"},"type":"function"}],"role":"assistant","reasoning_details":[{"data":"gAAAAABpssagkg5555BU8eWgG1B8tAi6UUzyAFkqDnJ-cnFqHhRmc2bzWuxec_8gFNw9WN3zAMM3jh1X_2iQgKVJ0JT1DMhGpYN31kr_kyzX6dAWM6OPkg4vLu2c_6j949t0KIvhMbt1ZWLp0Ny9rm8Fh4YZ-H3b38WK-Q_F5NITjM4TyaOA-JJWoWmYboD_kC4jmeyh47liqSK5eqomZEnuqlsr-pP4OSnuzotBO5mwD0odd1W7fc7iYvFBfXhCu1jirCoipPRXHX-aTXpH5jy8B7SAekt3qTcvgXZUGjotrYFcP971vV1BQRgGbdgN6yM83qcpAHJQO8tdLu6EkZvXfnukmTPw52JTRihsRnHPkUxFMsl742P7xs8A73lhCFq-XUOZzxZmTiMmAq0PS3EZuePAEYGq3rq0fJap9jIQB2KKcNxUNP-TT2yylBlByi1Ac1oSGdwD7dIwtX9C3Z0XHGeNv3cnYwcBzQHy2ko0uPmeD6p11rS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DxQB1WHs4tKSURliL7-n6QKew_yAeOrav2PkscUHIOS0L8LEswSDtd2n92RfGbe9rSh7ct6s4bi9u1O2H5M3X0foTNtiamkFGii4N4jnQUxwF0-7xtdFUXQXOoiq-PVh3DFTy2BF75c6RjUeO1vBsZ6HE-HE_jQVnK7cefq6vw--ot4c0-QTY239_CUm5nSMZfzQHuaWs6NqCtkx9fWzstpFrZSr-hxHMUiaK7jlT9fO0GN-y6FuXL8D2SINANFs1ViSioYVskb5jgCOF_rvjHwRAx4uaJNP0ZevLdTCOzYIKVu67U2paHm7yEc6_YSVEGPmCErbDNnHU66PHoGc9uCPjpZgmNlwKVDS-tWQDcdfxpECy_bNmI2djLM6sanc2Xh-7S9fuP_jI9ShpGQLILIGIqItlIBxJLXn2Qm8IZpaMKQYdFLbA9D6NlGKSlIy4sxu073LcXrUVmIxTlfliUAuGP0E9I4xPXfmG8uK9628ysvvEMZzZIkyNPtCMsvbFWbmCjB5HAHgHCCsgP0NJaei44uFhmyYRhEvogsODUgv0eYS1N57bXKhVe0Gi6XATtk8XFGPmGJUNDS0yJ60VNV_xUr3vSdT5_Hl5DQCizA3WtVXIVs3gYJIA1CJQEfP8nvlN2JrODCOz","format":"openai-responses-v1","id":"rs_06113a4c35b40b110169b2c694f7608195bbc8eb5427d84429","index":0,"type":"reasoning.encrypted"}]},{"content":"5","tool_call_id":"call_hxZ5lngdot9y8AfQa3spor2J","role":"tool"},{"content":"6","tool_call_id":"call_FfAnNULynr6w23E2ptBJNI0F","role":"tool"}],"model":"openai/gpt-5","max_completion_tokens":4000,"tool_choice":"auto","tools":[{"function":{"name":"add","strict":false,"description":"Add two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"},{"function":{"name":"multiply","strict":false,"description":"Multiply two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"}],"usage":{"include":true}}'
42    headers:
43      Accept:
44      - application/json
45      Content-Type:
46      - application/json
47      User-Agent:
48      - OpenAI/Go 2.7.1
49    url: https://openrouter.ai/api/v1/chat/completions
50    method: POST
51  response:
52    proto: HTTP/2.0
53    proto_major: 2
54    proto_minor: 0
55    content_length: -1
56    uncompressed: true
57    body: "\n         \n{\"id\":\"gen-1773323936-i11BOHKBlXfxaR0ey9BE\",\"object\":\"chat.completion\",\"created\":1773323936,\"model\":\"openai/gpt-5-2025-08-07\",\"provider\":\"OpenAI\",\"system_fingerprint\":null,\"choices\":[{\"index\":0,\"logprobs\":null,\"finish_reason\":\"stop\",\"native_finish_reason\":\"completed\",\"message\":{\"role\":\"assistant\",\"content\":\"Sum: 5\\nProduct: 6\",\"refusal\":null,\"reasoning\":null}}],\"usage\":{\"prompt_tokens\":403,\"completion_tokens\":13,\"total_tokens\":416,\"cost\":0.00063375,\"is_byok\":false,\"prompt_tokens_details\":{\"cached_tokens\":0,\"cache_write_tokens\":0,\"audio_tokens\":0,\"video_tokens\":0},\"cost_details\":{\"upstream_inference_cost\":0.00063375,\"upstream_inference_prompt_cost\":0.00050375,\"upstream_inference_completions_cost\":0.00013},\"completion_tokens_details\":{\"reasoning_tokens\":0,\"image_tokens\":0,\"audio_tokens\":0}}}"
58    headers:
59      Content-Type:
60      - application/json
61    status: 200 OK
62    code: 200
63    duration: 445.651292ms