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: 837
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":"moonshotai/kimi-k2-instruct-0905","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"}]}'
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://api.groq.com/openai/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: |
28      {"id":"chatcmpl-e4fc51e4-e08d-4122-b6b5-e5d78aad2c92","object":"chat.completion","created":1761231346,"model":"moonshotai/kimi-k2-instruct-0905","choices":[{"index":0,"message":{"role":"assistant","content":"I'll perform both the addition and multiplication operations on the numbers 2 and 3.","tool_calls":[{"id":"functions.add:0","type":"function","function":{"name":"add","arguments":"{\"a\":2,\"b\":3}"}},{"id":"functions.multiply:1","type":"function","function":{"name":"multiply","arguments":"{\"a\":2,\"b\":3}"}}]},"logprobs":null,"finish_reason":"tool_calls"}],"usage":{"queue_time":0.164058511,"prompt_tokens":205,"prompt_time":0.042868452,"completion_tokens":58,"completion_time":0.18327994,"total_tokens":263,"total_time":0.226148392},"usage_breakdown":null,"system_fingerprint":"fp_3312304636","x_groq":{"id":"req_01k88s36hnec3r9g9szm2nnmwc"},"service_tier":"on_demand"}
29    headers:
30      Content-Type:
31      - application/json
32    status: 200 OK
33    code: 200
34    duration: 610.726625ms
35- id: 1
36  request:
37    proto: HTTP/1.1
38    proto_major: 1
39    proto_minor: 1
40    content_length: 1313
41    host: ""
42    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"},{"content":"I''ll perform both the addition and multiplication operations on the numbers 2 and 3.","tool_calls":[{"id":"functions.add:0","function":{"arguments":"{\"a\":2,\"b\":3}","name":"add"},"type":"function"},{"id":"functions.multiply:1","function":{"arguments":"{\"a\":2,\"b\":3}","name":"multiply"},"type":"function"}],"role":"assistant"},{"content":"5","tool_call_id":"functions.add:0","role":"tool"},{"content":"6","tool_call_id":"functions.multiply:1","role":"tool"}],"model":"moonshotai/kimi-k2-instruct-0905","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"}]}'
43    headers:
44      Accept:
45      - application/json
46      Content-Type:
47      - application/json
48      User-Agent:
49      - OpenAI/Go 2.7.1
50    url: https://api.groq.com/openai/v1/chat/completions
51    method: POST
52  response:
53    proto: HTTP/2.0
54    proto_major: 2
55    proto_minor: 0
56    content_length: -1
57    uncompressed: true
58    body: |
59      {"id":"chatcmpl-c943396c-8833-4aa8-b955-7b041552ae10","object":"chat.completion","created":1761231347,"model":"moonshotai/kimi-k2-instruct-0905","choices":[{"index":0,"message":{"role":"assistant","content":"Here are the results for the numbers 2 and 3:\n- **Addition**: 2 + 3 = 5\n- **Multiplication**: 2 × 3 = 6"},"logprobs":null,"finish_reason":"stop"}],"usage":{"queue_time":0.164114085,"prompt_tokens":300,"prompt_time":0.036248822,"completion_tokens":40,"completion_time":0.108795555,"total_tokens":340,"total_time":0.145044377},"usage_breakdown":null,"system_fingerprint":"fp_3312304636","x_groq":{"id":"req_01k88s374vet9tpkbsh9y1tks8"},"service_tier":"on_demand"}
60    headers:
61      Content-Type:
62      - application/json
63    status: 200 OK
64    code: 200
65    duration: 369.01475ms