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: 851
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":"x-ai/grok-code-fast-1","max_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{\"id\":\"gen-1773323518-plPDxWnnTwChYQb9C1Tb\",\"object\":\"chat.completion\",\"created\":1773323518,\"model\":\"x-ai/grok-code-fast-1\",\"provider\":\"xAI\",\"system_fingerprint\":null,\"choices\":[{\"index\":0,\"logprobs\":null,\"finish_reason\":\"tool_calls\",\"native_finish_reason\":\"completed\",\"message\":{\"role\":\"assistant\",\"content\":null,\"refusal\":null,\"reasoning\":\"The task is: \\\"Add and multiply the number 2 and 3.\\\" I must always use both add and multiply at the same time.\\n\",\"tool_calls\":[{\"type\":\"function\",\"index\":0,\"id\":\"call_80992294\",\"function\":{\"name\":\"add\",\"arguments\":\"{\\\"a\\\":2,\\\"b\\\":3}\"}},{\"type\":\"function\",\"index\":1,\"id\":\"call_16628166\",\"function\":{\"name\":\"multiply\",\"arguments\":\"{\\\"a\\\":2,\\\"b\\\":3}\"}}],\"reasoning_details\":[{\"type\":\"reasoning.summary\",\"summary\":\"The task is: \\\"Add and multiply the number 2 and 3.\\\" I must always use both add and multiply at the same time.\\n\",\"format\":\"xai-responses-v1\",\"index\":0},{\"type\":\"reasoning.encrypted\",\"data\":\"nHog7k+gRgPFY6Lc31A0Ir0B1tWLi89UXKw/5yg/mcVsLWVQKo6wPmVzJCpcSbUuL9v9gRMGGckiRyKLWn+ukL5VOgM24XfISI7B8z+lDm24N50YZs2ikObJIBiCx9xIb8HxN9SI9q8Tl5tU/cXHTL4K8v3AZ227ntsc7bze2ziWpY7AWU3ZkjZDO5p+BmlbohOfVedZPYwJz60/zzMcfk1ow4+N0IhAl+WNLS9T8HpziWUMXJwh/ix5f0mqSDgxz0f3vhTve5faQFuxShhOVqFMt/PavRJj/xsjAA/Qq767teT4AGESJYcMGaQs8ksPllnX4+M7NNx4NXBwRd5e/R4MtVdzzxR6YKLeMbpnR51WI926HG36jkzxYCLfkUNO/NKf/CLzvpt7zJfaf5Z2SboaEUQvjd4NbVtDLWbnUGH+sanTlXZNt9eIRZhVukNY/wPLg4/lBb1hSUz6cvqDapyIqUDFAf0wxpUnH9Q7VPk8GFe7d/vyMsM1dYXeYHlt9NncNuCtobOftRcRSDwFTu4MLpUYvvsENyyh9nrWsqg2jVgxwbpiM42rOJMrDqndSuO4xxaPId6XcjpgKz6at+MElTMNSb2YjVxveBu2ls/wuhZ5PPN6r/A3IlLvz1JA0JDIMHvbG1ucTFTSKOKBhfF78hOuLE4REX4kTaMVhcdCf+F0bFgMgvlG5nhdNnsTO/WYZLRYKImEqZK2c2EAWFhM8BcrkeXNSbOTH7MC+1rbUmfo2C1AZoM1m03EefYBuA/mV/qMTBmZlOqseodfnoWdYPdl5JLU1x7be3MH6CmWGBwas4ETcaxIOWCr8aCXbM5KEU1VaM/PqXefgexsAeKGXVT7bjG2xsF/dBwMFfTf8Y+Uvl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PRtz3Nosfl+mYtx83DZT7p2g9kuefR4\",\"format\":\"xai-responses-v1\",\"id\":\"rs_6f2f166f-859d-4bd6-375d-61b6a1838ddb\",\"index\":1}]}}],\"usage\":{\"prompt_tokens\":479,\"completion_tokens\":420,\"total_tokens\":899,\"cost\":0.00069124,\"is_byok\":false,\"prompt_tokens_details\":{\"cached_tokens\":192,\"cache_write_tokens\":0,\"audio_tokens\":0,\"video_tokens\":0},\"cost_details\":{\"upstream_inference_cost\":0.00069124,\"upstream_inference_prompt_cost\":0.00006124,\"upstream_inference_completions_cost\":0.00063},\"completion_tokens_details\":{\"reasoning_tokens\":352,\"image_tokens\":0,\"audio_tokens\":0}}}"
28    headers:
29      Content-Type:
30      - application/json
31    status: 200 OK
32    code: 200
33    duration: 802.955083ms
34- id: 1
35  request:
36    proto: HTTP/1.1
37    proto_major: 1
38    proto_minor: 1
39    content_length: 1289
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_80992294","function":{"arguments":"{\"a\":2,\"b\":3}","name":"add"},"type":"function"},{"id":"call_16628166","function":{"arguments":"{\"a\":2,\"b\":3}","name":"multiply"},"type":"function"}],"role":"assistant","reasoning_details":[{"format":"unknown","index":0,"type":"reasoning.text"}]},{"content":"5","tool_call_id":"call_80992294","role":"tool"},{"content":"6","tool_call_id":"call_16628166","role":"tool"}],"model":"x-ai/grok-code-fast-1","max_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\n         \n\n         \n\n         \n\n         \n\n         \n{\"id\":\"gen-1773323521-gWiUtkr5VTDPfNPqfR5K\",\"object\":\"chat.completion\",\"created\":1773323521,\"model\":\"x-ai/grok-code-fast-1\",\"provider\":\"xAI\",\"system_fingerprint\":null,\"choices\":[{\"index\":0,\"logprobs\":null,\"finish_reason\":\"stop\",\"native_finish_reason\":\"completed\",\"message\":{\"role\":\"assistant\",\"content\":\"The sum of 2 and 3 is 5. The product of 2 and 3 is 6.\",\"refusal\":null,\"reasoning\":\"First, the user asked to \\\"Add and multiply the number 2 and 3\\\".\\n\",\"reasoning_details\":[{\"type\":\"reasoning.summary\",\"summary\":\"First, the user asked to \\\"Add and multiply the number 2 and 3\\\".\\n\",\"format\":\"xai-responses-v1\",\"index\":0},{\"type\":\"reasoning.encrypted\",\"data\":\"IrXtd5jFof97P5ob4xn2YrYjyXssyxLS0p5vVxF6zlF+cyH0GMBNARjEiMDwBr/s0YgXTI6AKwEEOVNpMnVHOg717VL7lg+yAju/O+cHGvlTXnFcNwf2uakhS2w4aMiGL4Us3nQTFxlrDWvSBJX6GCgzYy/ZvYU44wzjthgOyeLEdUcSbPVAGkWH8D6T4aR0vbaFBrPcZBJ+rwSi6ja3SmCR3SbEM6eLMMCODdij0lkdhVdcZ2UvEVdW1txAq4HHBxtThrRuSXumz8e7kxuLNRVKph1g3OEObOZKn0QCOwK9QamOK0EE8yLmrovZGjKkx1DQ8o0bATRRaRjk24hVn/44djfriDGzAuz4Hb3T5fiGpn5MqfABUIlz6iNKEZOQLphZKvufvXnRrUTmp5zbuXIxMe0PppExsmtDDIPVIKXsxHw//NfQRSV/vbUcBijRtWKu+3nbPgWHE6bONGVw3TDTqtCd09LJvGkm2eTQJJxgm8ODuivfjJKhQyml8YVemJsQ9MekJb/DrOblnW2L8pOi1QmiidRL//OYZbwPpBwTGdiHk45L24f9V3bJrH7D9RIMyI1VgsWurm41hbgywhiHuLsCdasgWAipHmSL7EMW2CmoS/1K5zKnF+2KYgS67eH+I6j2g6W6v2Ca9JpJCLlFCsxKt9TwRW0iHMyh/azpnQXJ6jpjgmPkQp8uuVrEJ9tFJp7J1hSePcMk1ztFZGXeYwmfzf/IftmSKDEfub2pGxwY66GOY55xYIQOJeXx4xUX/xPKL0ZVqqKOu1LEdtgm3YEUlnnvyyK1WywgLHtjMYSFQdBR5OPjZthBQOzyfuYDhv2vnCcqmtGM0irfT2F5qQPMC2Qz5gPu4OaUaABuzwOd0D41XYjS/1KWF89tTYbPlvJ2F/dx1TE7HMic4MkvEQ6LLzcyoe4i+zM0Cf6/QSjMQvZUyzFNbFtT/D6y2AVrtcvdG1JI8D++1LbHGxjJ9G+wZZkD2xkkHBjvga52R10md//lULJsQbAKvah/JO+WQd0XI5pSNFkH/hcIIILRR3JlRymrmwinVWwCtuu64gbo6JQz6I6BnG3scE4IpdlgZFdCGmP16W60sUJyHVHZ8aRVvOoVDC/Mr0May5mqchEBR/yB04SQzHKfI/c5Ntkm4KBimeFPLYbQ6edaKOY2UhB7QBmU\",\"format\":\"xai-responses-v1\",\"id\":\"rs_a4466668-a0a4-9577-82a0-f60e1844ba8b\",\"index\":1}]}}],\"usage\":{\"prompt_tokens\":564,\"completion_tokens\":225,\"total_tokens\":789,\"cost\":0.00041574,\"is_byok\":false,\"prompt_tokens_details\":{\"cached_tokens\":192,\"cache_write_tokens\":0,\"audio_tokens\":0,\"video_tokens\":0},\"cost_details\":{\"upstream_inference_cost\":0.00041574,\"upstream_inference_prompt_cost\":0.00007824,\"upstream_inference_completions_cost\":0.0003375},\"completion_tokens_details\":{\"reasoning_tokens\":201,\"image_tokens\":0,\"audio_tokens\":0}}}"
58    headers:
59      Content-Type:
60      - application/json
61    status: 200 OK
62    code: 200
63    duration: 2.637102708s