multi_tool_gpt-5.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: 836
10        host: ""
11        body: '{"messages":[{"content":"You are a helpful assistant. Always use both add and multiply at the same time.","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.3.0
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{\"id\":\"gen-1758710016-0AtFf1Iu3Nb9YOfvALsh\",\"provider\":\"OpenAI\",\"model\":\"openai/gpt-5\",\"object\":\"chat.completion\",\"created\":1758710016,\"choices\":[{\"logprobs\":null,\"finish_reason\":\"tool_calls\",\"native_finish_reason\":\"completed\",\"index\":0,\"message\":{\"role\":\"assistant\",\"content\":\"\",\"refusal\":null,\"reasoning\":\"**Executing tool operations**\\n\\nI’ve got access to tools like functions.add and functions.multiply, and I can use a multi_tool_use.parallel wrapper to run them together. The task is to add and multiply the numbers 2 and 3. So, I’ll call both tools with a=2 and b=3 by using that parallel wrapper. After the tools give me their results, I'll summarize them nicely, showing that 2 + 3 equals 5 and 2 × 3 equals 6. Let’s get started!**Executing tool call**\\n\\nI expect that the wrapper will give back a combined result structure with the outputs from both tool calls. Once I get that, I’ll need to parse the information so I can present it clearly. After parsing, I can just print the results for easy understanding. Let’s go ahead and execute the tool now, and I’ll make sure to handle the results properly once they come back!\",\"tool_calls\":[{\"id\":\"call_eojodpC5HI7opFTOpLUuIICL\",\"index\":1,\"type\":\"function\",\"function\":{\"name\":\"add\",\"arguments\":\"{\\\"a\\\":2,\\\"b\\\":3}\"}},{\"id\":\"call_KFCE87VyyS1OmmXnMTPHbXCN\",\"index\":2,\"type\":\"function\",\"function\":{\"name\":\"multiply\",\"arguments\":\"{\\\"a\\\":2,\\\"b\\\":3}\"}}],\"reasoning_details\":[{\"type\":\"reasoning.summary\",\"summary\":\"**Executing tool operations**\\n\\nI’ve got access to tools like functions.add and functions.multiply, and I can use a multi_tool_use.parallel wrapper to run them together. The task is to add and multiply the numbers 2 and 3. So, I’ll call both tools with a=2 and b=3 by using that parallel wrapper. After the tools give me their results, I'll summarize them nicely, showing that 2 + 3 equals 5 and 2 × 3 equals 6. Let’s get started!**Executing tool call**\\n\\nI expect that the wrapper will give back a combined result structure with the outputs from both tool calls. Once I get that, I’ll need to parse the information so I can present it clearly. After parsing, I can just print the results for easy understanding. Let’s go ahead and execute the tool now, and I’ll make sure to handle the results properly once they come back!\",\"format\":\"openai-responses-v1\",\"index\":0},{\"type\":\"reasoning.encrypted\",\"data\":\"gAAAAABo08kHlXdxLgi8bExHRhpDV2L-zPighNPmGb1Etn8Qx7PXwFDRcmhlFXyCTCUr2xbvELh2NTGpsbP4g7rZmatjCy8T93RDOBXjru7EmAKxnKfDvSpexE446aQs-5D8bTwk01wVpUbw9JNipELgFCkHr1DV35v8Ku46GvHBqYEPMd8rqVV2fDaHqP6XiUVsVzGciyRvYPO-eQKmI1yqrXSHZDHggBLdeHL-cXGyB5VSAtnrbUQ2tAJgHB35ONkGCC4UdLFwi6Vt6OR7ykZ4sC2gCZyse9eVlsJtu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HUBzjodUD1DVljpB1B8ZeLZ0R1TAZNMZAXKBw-OBv_KzNMGxIp15k8gGui0z8U0kurvbiMeuMrWmiFA7REDPNyMJ45h9LjfmzMPA89Hl27EipyVzri2BXESbsfkWh41RYnl1xn5M3lUaMPfSvsor2JAbgtnt-xxSclsI9LcclA442-a4qgF2MvF_C2osRhzYUge6qtaYeHiodwSnubMFCcyxEDirliQpGUbrYPa153XZQC44p9ivlT2KK_WMyCwyYMIkYGNHSwWJq3cQ1vrc3vi09rFzHvTWfE6G8vK-7VT5A_vefRAEpoVgJT7j55CzvS2u3-OCyNGBZkcPzmHd2z2FoO1-bfDGhkgTV_APB_lrYxdTWCV9egMdxyJ-HCWqFaoG4w2p3jgW0uc1Mykks3Nt_lt9fe0vBWH2MczhaBOlnP0FJ9B1tXrQMc-J79kamyR_2zDhkCUtRVnqh0Agu8qOxALlrX50VQ7UCwcgjB0iw47XkmKEP9S0DYGiARzBkGFsSi4sgDMBl66G-rJxxUKqwUiABqKy_LVSG1gQsAVMZT1MbAAdr5hbkdYER5uAfLCaL_Q24iobvVRJ9mcXnSvsUmCUVresKBNGowuSplYdt8KOjzJxJsCNxMNrvJmlaSEqHSaj22jWS3jiis6m6dAAC450tr35cpUHf83WRTZd3zDxnfQbZY7xNMo9je4qFN4LQ-XzVdT0A9ZAcryIloK4vm2fhDzTmD8V_BUCPC9vjKY2Sy8dWYWvdLQV6IqyfxVunyY93u5gc5qVksZ6V3uqXCUUcO5eGCjtUTmt7KDUDFZvc8442MoBIzRo2jlJInJ_GGIdmY9fOnEOFwSW9jpL8mHb4jtn\",\"id\":\"rs_68d3c901d204819483483a6e4f94586b0e8abf00f43b3ff9\",\"format\":\"openai-responses-v1\",\"index\":0}]}}],\"usage\":{\"prompt_tokens\":108,\"completion_tokens\":248,\"total_tokens\":356,\"cost\":0.002615,\"is_byok\":false,\"prompt_tokens_details\":{\"cached_tokens\":0,\"audio_tokens\":0},\"cost_details\":{\"upstream_inference_cost\":null,\"upstream_inference_prompt_cost\":0.000135,\"upstream_inference_completions_cost\":0.00248},\"completion_tokens_details\":{\"reasoning_tokens\":192,\"image_tokens\":0}}}"
28        headers:
29            Content-Type:
30              - application/json
31        status: 200 OK
32        code: 200
33        duration: 847.116209ms
34  - id: 1
35    request:
36        proto: HTTP/1.1
37        proto_major: 1
38        proto_minor: 1
39        content_length: 1261
40        host: ""
41        body: '{"messages":[{"content":"You are a helpful assistant. Always use both add and multiply at the same time.","role":"system"},{"content":"Add and multiply the number 2 and 3","role":"user"},{"tool_calls":[{"id":"call_eojodpC5HI7opFTOpLUuIICL","function":{"arguments":"{\"a\":2,\"b\":3}","name":"add"},"type":"function"},{"id":"call_KFCE87VyyS1OmmXnMTPHbXCN","function":{"arguments":"{\"a\":2,\"b\":3}","name":"multiply"},"type":"function"}],"role":"assistant"},{"content":"5","tool_call_id":"call_eojodpC5HI7opFTOpLUuIICL","role":"tool"},{"content":"6","tool_call_id":"call_KFCE87VyyS1OmmXnMTPHbXCN","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.3.0
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\n         \n\n         \n\n         \n{\"id\":\"gen-1758710023-1IaMYEjx6FJhLD50afHF\",\"provider\":\"OpenAI\",\"model\":\"openai/gpt-5\",\"object\":\"chat.completion\",\"created\":1758710023,\"choices\":[{\"logprobs\":null,\"finish_reason\":\"stop\",\"native_finish_reason\":\"completed\",\"index\":0,\"message\":{\"role\":\"assistant\",\"content\":\"Results:\\n- Sum (2 + 3) = 5\\n- Product (2 × 3) = 6\",\"refusal\":null,\"reasoning\":null}}],\"usage\":{\"prompt_tokens\":167,\"completion_tokens\":29,\"total_tokens\":196,\"cost\":0.000249375,\"is_byok\":false,\"prompt_tokens_details\":{\"cached_tokens\":0,\"audio_tokens\":0},\"cost_details\":{\"upstream_inference_cost\":null,\"upstream_inference_prompt_cost\":0.000104375,\"upstream_inference_completions_cost\":0.000145},\"completion_tokens_details\":{\"reasoning_tokens\":0,\"image_tokens\":0}}}"
58        headers:
59            Content-Type:
60              - application/json
61        status: 200 OK
62        code: 200
63        duration: 1.022725875s