when:
  path: /v1/messages
  method: POST
  query_param: []
  header:
  - name: accept
    value: '*/*'
  - name: content-type
    value: application/json
  - name: anthropic-version
    value: 2023-06-01
  body: '{"max_tokens":64000,"messages":[{"content":[{"text":"I ordered 3 units of Product A at $25 each and 2 units of Product B at $40 each. I want to return 1 unit of Product A and exchange the 2 units of Product B for Product C. How much will I get refunded, and is Product C in stock? Also, how much would it cost to ship the exchanged items with express shipping? Lastly, how much would it cost to buy Product A + 2 Product B with slow (standard) shipping?","type":"text"}],"role":"user"}],"model":"claude-sonnet-4-6","system":[{"text":"You are a customer service agent for an online store.\n            You have access to several tools:\n\n            1. The ''think'' tool allows you to reason through complex problems step by step.\n               Use it when you need to analyze information or plan your response.\n\n            2. The ''calculator'' tool can perform arithmetic using expressions.\n\n            3. The ''database_lookup'' tool can retrieve information about store policies,\n               shipping rates, and product inventory.\n\n            When handling customer inquiries, use the ''think'' tool to analyze the situation\n            before responding or using other tools.","type":"text"}],"tools":[{"description":"Use the tool to think about something. It will not obtain new information\n            or change the database, but just append the thought to the log. Use it when complex\n            reasoning or some cache memory is needed.","input_schema":{"properties":{"thought":{"description":"A thought to think about.","type":"string"}},"required":["thought"],"type":"object"},"name":"think"},{"description":"Evaluate arithmetic expressions with +, -, *, /, and parentheses.","input_schema":{"properties":{"expression":{"description":"An arithmetic expression such as ''25 + (2 * 40)''","type":"string"}},"required":["expression"],"type":"object"},"name":"calculator"},{"description":"Look up customer_policy, shipping_rates, or product_inventory.","input_schema":{"properties":{"query":{"description":"One of customer_policy, shipping_rates, or product_inventory","type":"string"}},"required":["query"],"type":"object"},"name":"database_lookup"}]}'
then:
  status: 200
  header:
  - name: content-type
    value: application/json
  body: '{"content":[{"caller":{"type":"direct"},"id":"toolu_REDACTED_1","input":{"thought":"The customer has multiple questions:\n1. Refund for 1 unit of Product A at $25 each\n2. Whether Product C is in stock (for the exchange of 2 units of Product B)\n3. Express shipping cost for the exchanged items (2 units of Product C)\n4. Cost to buy Product A + 2 Product B with standard shipping\n\nI need to:\n- Look up customer policy (for return/refund info)\n- Look up product inventory (for Product C stock)\n- Look up shipping rates (for express and standard shipping)\n- Calculate the refund amount\n- Calculate the total cost for Product A + 2 Product B + standard shipping\n\nI can look up all three database queries and start the refund calculation simultaneously since I already have the price info for the refund."},"name":"think","type":"tool_use"}],"id":"msg_REDACTED_1","model":"claude-sonnet-4-6","role":"assistant","stop_details":null,"stop_reason":"tool_use","stop_sequence":null,"type":"message","usage":{"cache_creation":{"ephemeral_1h_input_tokens":0,"ephemeral_5m_input_tokens":0},"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"inference_geo":"global","input_tokens":1010,"output_tokens":230,"service_tier":"standard"}}'
---
when:
  path: /v1/messages
  method: POST
  query_param: []
  header:
  - name: accept
    value: '*/*'
  - name: content-type
    value: application/json
  - name: anthropic-version
    value: 2023-06-01
  body: '{"max_tokens":64000,"messages":[{"content":[{"text":"I ordered 3 units of Product A at $25 each and 2 units of Product B at $40 each. I want to return 1 unit of Product A and exchange the 2 units of Product B for Product C. How much will I get refunded, and is Product C in stock? Also, how much would it cost to ship the exchanged items with express shipping? Lastly, how much would it cost to buy Product A + 2 Product B with slow (standard) shipping?","type":"text"}],"role":"user"},{"content":[{"id":"toolu_REDACTED_1","input":{"thought":"The customer has multiple questions:\n1. Refund for 1 unit of Product A at $25 each\n2. Whether Product C is in stock (for the exchange of 2 units of Product B)\n3. Express shipping cost for the exchanged items (2 units of Product C)\n4. Cost to buy Product A + 2 Product B with standard shipping\n\nI need to:\n- Look up customer policy (for return/refund info)\n- Look up product inventory (for Product C stock)\n- Look up shipping rates (for express and standard shipping)\n- Calculate the refund amount\n- Calculate the total cost for Product A + 2 Product B + standard shipping\n\nI can look up all three database queries and start the refund calculation simultaneously since I already have the price info for the refund."},"name":"think","type":"tool_use"}],"role":"assistant"},{"content":[{"content":[{"text":"The customer has multiple questions:\n1. Refund for 1 unit of Product A at $25 each\n2. Whether Product C is in stock (for the exchange of 2 units of Product B)\n3. Express shipping cost for the exchanged items (2 units of Product C)\n4. Cost to buy Product A + 2 Product B with standard shipping\n\nI need to:\n- Look up customer policy (for return/refund info)\n- Look up product inventory (for Product C stock)\n- Look up shipping rates (for express and standard shipping)\n- Calculate the refund amount\n- Calculate the total cost for Product A + 2 Product B + standard shipping\n\nI can look up all three database queries and start the refund calculation simultaneously since I already have the price info for the refund.","type":"text"}],"tool_use_id":"toolu_REDACTED_1","type":"tool_result"}],"role":"user"}],"model":"claude-sonnet-4-6","system":[{"text":"You are a customer service agent for an online store.\n            You have access to several tools:\n\n            1. The ''think'' tool allows you to reason through complex problems step by step.\n               Use it when you need to analyze information or plan your response.\n\n            2. The ''calculator'' tool can perform arithmetic using expressions.\n\n            3. The ''database_lookup'' tool can retrieve information about store policies,\n               shipping rates, and product inventory.\n\n            When handling customer inquiries, use the ''think'' tool to analyze the situation\n            before responding or using other tools.","type":"text"}],"tools":[{"description":"Use the tool to think about something. It will not obtain new information\n            or change the database, but just append the thought to the log. Use it when complex\n            reasoning or some cache memory is needed.","input_schema":{"properties":{"thought":{"description":"A thought to think about.","type":"string"}},"required":["thought"],"type":"object"},"name":"think"},{"description":"Evaluate arithmetic expressions with +, -, *, /, and parentheses.","input_schema":{"properties":{"expression":{"description":"An arithmetic expression such as ''25 + (2 * 40)''","type":"string"}},"required":["expression"],"type":"object"},"name":"calculator"},{"description":"Look up customer_policy, shipping_rates, or product_inventory.","input_schema":{"properties":{"query":{"description":"One of customer_policy, shipping_rates, or product_inventory","type":"string"}},"required":["query"],"type":"object"},"name":"database_lookup"}]}'
then:
  status: 200
  header:
  - name: content-type
    value: application/json
  body: '{"content":[{"text":"I''ll look everything up at once! Let me fetch the policy, inventory, and shipping rates all simultaneously.","type":"text"},{"caller":{"type":"direct"},"id":"toolu_REDACTED_2","input":{"query":"customer_policy"},"name":"database_lookup","type":"tool_use"},{"caller":{"type":"direct"},"id":"toolu_REDACTED_3","input":{"query":"product_inventory"},"name":"database_lookup","type":"tool_use"},{"caller":{"type":"direct"},"id":"toolu_REDACTED_4","input":{"query":"shipping_rates"},"name":"database_lookup","type":"tool_use"}],"id":"msg_REDACTED_2","model":"claude-sonnet-4-6","role":"assistant","stop_details":null,"stop_reason":"tool_use","stop_sequence":null,"type":"message","usage":{"cache_creation":{"ephemeral_1h_input_tokens":0,"ephemeral_5m_input_tokens":0},"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"inference_geo":"global","input_tokens":1431,"output_tokens":154,"service_tier":"standard"}}'
---
when:
  path: /v1/messages
  method: POST
  query_param: []
  header:
  - name: accept
    value: '*/*'
  - name: content-type
    value: application/json
  - name: anthropic-version
    value: 2023-06-01
  body: '{"max_tokens":64000,"messages":[{"content":[{"text":"I ordered 3 units of Product A at $25 each and 2 units of Product B at $40 each. I want to return 1 unit of Product A and exchange the 2 units of Product B for Product C. How much will I get refunded, and is Product C in stock? Also, how much would it cost to ship the exchanged items with express shipping? Lastly, how much would it cost to buy Product A + 2 Product B with slow (standard) shipping?","type":"text"}],"role":"user"},{"content":[{"id":"toolu_REDACTED_1","input":{"thought":"The customer has multiple questions:\n1. Refund for 1 unit of Product A at $25 each\n2. Whether Product C is in stock (for the exchange of 2 units of Product B)\n3. Express shipping cost for the exchanged items (2 units of Product C)\n4. Cost to buy Product A + 2 Product B with standard shipping\n\nI need to:\n- Look up customer policy (for return/refund info)\n- Look up product inventory (for Product C stock)\n- Look up shipping rates (for express and standard shipping)\n- Calculate the refund amount\n- Calculate the total cost for Product A + 2 Product B + standard shipping\n\nI can look up all three database queries and start the refund calculation simultaneously since I already have the price info for the refund."},"name":"think","type":"tool_use"}],"role":"assistant"},{"content":[{"content":[{"text":"The customer has multiple questions:\n1. Refund for 1 unit of Product A at $25 each\n2. Whether Product C is in stock (for the exchange of 2 units of Product B)\n3. Express shipping cost for the exchanged items (2 units of Product C)\n4. Cost to buy Product A + 2 Product B with standard shipping\n\nI need to:\n- Look up customer policy (for return/refund info)\n- Look up product inventory (for Product C stock)\n- Look up shipping rates (for express and standard shipping)\n- Calculate the refund amount\n- Calculate the total cost for Product A + 2 Product B + standard shipping\n\nI can look up all three database queries and start the refund calculation simultaneously since I already have the price info for the refund.","type":"text"}],"tool_use_id":"toolu_REDACTED_1","type":"tool_result"}],"role":"user"},{"content":[{"text":"I''ll look everything up at once! Let me fetch the policy, inventory, and shipping rates all simultaneously.","type":"text"},{"id":"toolu_REDACTED_2","input":{"query":"customer_policy"},"name":"database_lookup","type":"tool_use"},{"id":"toolu_REDACTED_3","input":{"query":"product_inventory"},"name":"database_lookup","type":"tool_use"},{"id":"toolu_REDACTED_4","input":{"query":"shipping_rates"},"name":"database_lookup","type":"tool_use"}],"role":"assistant"},{"content":[{"content":[{"text":"Customers can return items within 30 days with a receipt for a full refund.","type":"text"}],"tool_use_id":"toolu_REDACTED_2","type":"tool_result"},{"content":[{"text":"Product A: 15 units, Product B: 8 units, Product C: Out of stock","type":"text"}],"tool_use_id":"toolu_REDACTED_3","type":"tool_result"},{"content":[{"text":"Standard shipping: $5.99, Express shipping: $15.99, Next-day shipping: $29.99","type":"text"}],"tool_use_id":"toolu_REDACTED_4","type":"tool_result"}],"role":"user"}],"model":"claude-sonnet-4-6","system":[{"text":"You are a customer service agent for an online store.\n            You have access to several tools:\n\n            1. The ''think'' tool allows you to reason through complex problems step by step.\n               Use it when you need to analyze information or plan your response.\n\n            2. The ''calculator'' tool can perform arithmetic using expressions.\n\n            3. The ''database_lookup'' tool can retrieve information about store policies,\n               shipping rates, and product inventory.\n\n            When handling customer inquiries, use the ''think'' tool to analyze the situation\n            before responding or using other tools.","type":"text"}],"tools":[{"description":"Use the tool to think about something. It will not obtain new information\n            or change the database, but just append the thought to the log. Use it when complex\n            reasoning or some cache memory is needed.","input_schema":{"properties":{"thought":{"description":"A thought to think about.","type":"string"}},"required":["thought"],"type":"object"},"name":"think"},{"description":"Evaluate arithmetic expressions with +, -, *, /, and parentheses.","input_schema":{"properties":{"expression":{"description":"An arithmetic expression such as ''25 + (2 * 40)''","type":"string"}},"required":["expression"],"type":"object"},"name":"calculator"},{"description":"Look up customer_policy, shipping_rates, or product_inventory.","input_schema":{"properties":{"query":{"description":"One of customer_policy, shipping_rates, or product_inventory","type":"string"}},"required":["query"],"type":"object"},"name":"database_lookup"}]}'
then:
  status: 200
  header:
  - name: content-type
    value: application/json
  body: '{"content":[{"caller":{"type":"direct"},"id":"toolu_REDACTED_5","input":{"thought":"Now I have all the information. Let me plan the calculations:\n\n1. Refund for 1 unit of Product A: 1 × $25 = $25 (full refund per policy)\n2. Product C is OUT OF STOCK - I need to inform the customer\n3. Express shipping for exchanged items (2 units of Product C): $15.99 — but since Product C is out of stock, this may be moot, but I''ll still provide the rate\n4. Cost to buy Product A + 2 Product B with standard shipping:\n   - Product A: 1 × $25 = $25\n   - 2 × Product B: 2 × $40 = $80\n   - Standard shipping: $5.99\n   - Total: $25 + $80 + $5.99 = $110.99\n\nLet me calculate these."},"name":"think","type":"tool_use"}],"id":"msg_REDACTED_3","model":"claude-sonnet-4-6","role":"assistant","stop_details":null,"stop_reason":"tool_use","stop_sequence":null,"type":"message","usage":{"cache_creation":{"ephemeral_1h_input_tokens":0,"ephemeral_5m_input_tokens":0},"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"inference_geo":"global","input_tokens":1738,"output_tokens":250,"service_tier":"standard"}}'
---
when:
  path: /v1/messages
  method: POST
  query_param: []
  header:
  - name: accept
    value: '*/*'
  - name: content-type
    value: application/json
  - name: anthropic-version
    value: 2023-06-01
  body: '{"max_tokens":64000,"messages":[{"content":[{"text":"I ordered 3 units of Product A at $25 each and 2 units of Product B at $40 each. I want to return 1 unit of Product A and exchange the 2 units of Product B for Product C. How much will I get refunded, and is Product C in stock? Also, how much would it cost to ship the exchanged items with express shipping? Lastly, how much would it cost to buy Product A + 2 Product B with slow (standard) shipping?","type":"text"}],"role":"user"},{"content":[{"id":"toolu_REDACTED_1","input":{"thought":"The customer has multiple questions:\n1. Refund for 1 unit of Product A at $25 each\n2. Whether Product C is in stock (for the exchange of 2 units of Product B)\n3. Express shipping cost for the exchanged items (2 units of Product C)\n4. Cost to buy Product A + 2 Product B with standard shipping\n\nI need to:\n- Look up customer policy (for return/refund info)\n- Look up product inventory (for Product C stock)\n- Look up shipping rates (for express and standard shipping)\n- Calculate the refund amount\n- Calculate the total cost for Product A + 2 Product B + standard shipping\n\nI can look up all three database queries and start the refund calculation simultaneously since I already have the price info for the refund."},"name":"think","type":"tool_use"}],"role":"assistant"},{"content":[{"content":[{"text":"The customer has multiple questions:\n1. Refund for 1 unit of Product A at $25 each\n2. Whether Product C is in stock (for the exchange of 2 units of Product B)\n3. Express shipping cost for the exchanged items (2 units of Product C)\n4. Cost to buy Product A + 2 Product B with standard shipping\n\nI need to:\n- Look up customer policy (for return/refund info)\n- Look up product inventory (for Product C stock)\n- Look up shipping rates (for express and standard shipping)\n- Calculate the refund amount\n- Calculate the total cost for Product A + 2 Product B + standard shipping\n\nI can look up all three database queries and start the refund calculation simultaneously since I already have the price info for the refund.","type":"text"}],"tool_use_id":"toolu_REDACTED_1","type":"tool_result"}],"role":"user"},{"content":[{"text":"I''ll look everything up at once! Let me fetch the policy, inventory, and shipping rates all simultaneously.","type":"text"},{"id":"toolu_REDACTED_2","input":{"query":"customer_policy"},"name":"database_lookup","type":"tool_use"},{"id":"toolu_REDACTED_3","input":{"query":"product_inventory"},"name":"database_lookup","type":"tool_use"},{"id":"toolu_REDACTED_4","input":{"query":"shipping_rates"},"name":"database_lookup","type":"tool_use"}],"role":"assistant"},{"content":[{"content":[{"text":"Customers can return items within 30 days with a receipt for a full refund.","type":"text"}],"tool_use_id":"toolu_REDACTED_2","type":"tool_result"},{"content":[{"text":"Product A: 15 units, Product B: 8 units, Product C: Out of stock","type":"text"}],"tool_use_id":"toolu_REDACTED_3","type":"tool_result"},{"content":[{"text":"Standard shipping: $5.99, Express shipping: $15.99, Next-day shipping: $29.99","type":"text"}],"tool_use_id":"toolu_REDACTED_4","type":"tool_result"}],"role":"user"},{"content":[{"id":"toolu_REDACTED_5","input":{"thought":"Now I have all the information. Let me plan the calculations:\n\n1. Refund for 1 unit of Product A: 1 × $25 = $25 (full refund per policy)\n2. Product C is OUT OF STOCK - I need to inform the customer\n3. Express shipping for exchanged items (2 units of Product C): $15.99 — but since Product C is out of stock, this may be moot, but I''ll still provide the rate\n4. Cost to buy Product A + 2 Product B with standard shipping:\n   - Product A: 1 × $25 = $25\n   - 2 × Product B: 2 × $40 = $80\n   - Standard shipping: $5.99\n   - Total: $25 + $80 + $5.99 = $110.99\n\nLet me calculate these."},"name":"think","type":"tool_use"}],"role":"assistant"},{"content":[{"content":[{"text":"Now I have all the information. Let me plan the calculations:\n\n1. Refund for 1 unit of Product A: 1 × $25 = $25 (full refund per policy)\n2. Product C is OUT OF STOCK - I need to inform the customer\n3. Express shipping for exchanged items (2 units of Product C): $15.99 — but since Product C is out of stock, this may be moot, but I''ll still provide the rate\n4. Cost to buy Product A + 2 Product B with standard shipping:\n   - Product A: 1 × $25 = $25\n   - 2 × Product B: 2 × $40 = $80\n   - Standard shipping: $5.99\n   - Total: $25 + $80 + $5.99 = $110.99\n\nLet me calculate these.","type":"text"}],"tool_use_id":"toolu_REDACTED_5","type":"tool_result"}],"role":"user"}],"model":"claude-sonnet-4-6","system":[{"text":"You are a customer service agent for an online store.\n            You have access to several tools:\n\n            1. The ''think'' tool allows you to reason through complex problems step by step.\n               Use it when you need to analyze information or plan your response.\n\n            2. The ''calculator'' tool can perform arithmetic using expressions.\n\n            3. The ''database_lookup'' tool can retrieve information about store policies,\n               shipping rates, and product inventory.\n\n            When handling customer inquiries, use the ''think'' tool to analyze the situation\n            before responding or using other tools.","type":"text"}],"tools":[{"description":"Use the tool to think about something. It will not obtain new information\n            or change the database, but just append the thought to the log. Use it when complex\n            reasoning or some cache memory is needed.","input_schema":{"properties":{"thought":{"description":"A thought to think about.","type":"string"}},"required":["thought"],"type":"object"},"name":"think"},{"description":"Evaluate arithmetic expressions with +, -, *, /, and parentheses.","input_schema":{"properties":{"expression":{"description":"An arithmetic expression such as ''25 + (2 * 40)''","type":"string"}},"required":["expression"],"type":"object"},"name":"calculator"},{"description":"Look up customer_policy, shipping_rates, or product_inventory.","input_schema":{"properties":{"query":{"description":"One of customer_policy, shipping_rates, or product_inventory","type":"string"}},"required":["query"],"type":"object"},"name":"database_lookup"}]}'
then:
  status: 200
  header:
  - name: content-type
    value: application/json
  body: '{"content":[{"text":"Now let me run the calculations simultaneously!","type":"text"},{"caller":{"type":"direct"},"id":"toolu_REDACTED_6","input":{"expression":"1 * 25"},"name":"calculator","type":"tool_use"},{"caller":{"type":"direct"},"id":"toolu_REDACTED_7","input":{"expression":"25 + (2 * 40) + 5.99"},"name":"calculator","type":"tool_use"}],"id":"msg_REDACTED_4","model":"claude-sonnet-4-6","role":"assistant","stop_details":null,"stop_reason":"tool_use","stop_sequence":null,"type":"message","usage":{"cache_creation":{"ephemeral_1h_input_tokens":0,"ephemeral_5m_input_tokens":0},"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"inference_geo":"global","input_tokens":2200,"output_tokens":112,"service_tier":"standard"}}'
---
when:
  path: /v1/messages
  method: POST
  query_param: []
  header:
  - name: accept
    value: '*/*'
  - name: content-type
    value: application/json
  - name: anthropic-version
    value: 2023-06-01
  body: '{"max_tokens":64000,"messages":[{"content":[{"text":"I ordered 3 units of Product A at $25 each and 2 units of Product B at $40 each. I want to return 1 unit of Product A and exchange the 2 units of Product B for Product C. How much will I get refunded, and is Product C in stock? Also, how much would it cost to ship the exchanged items with express shipping? Lastly, how much would it cost to buy Product A + 2 Product B with slow (standard) shipping?","type":"text"}],"role":"user"},{"content":[{"id":"toolu_REDACTED_1","input":{"thought":"The customer has multiple questions:\n1. Refund for 1 unit of Product A at $25 each\n2. Whether Product C is in stock (for the exchange of 2 units of Product B)\n3. Express shipping cost for the exchanged items (2 units of Product C)\n4. Cost to buy Product A + 2 Product B with standard shipping\n\nI need to:\n- Look up customer policy (for return/refund info)\n- Look up product inventory (for Product C stock)\n- Look up shipping rates (for express and standard shipping)\n- Calculate the refund amount\n- Calculate the total cost for Product A + 2 Product B + standard shipping\n\nI can look up all three database queries and start the refund calculation simultaneously since I already have the price info for the refund."},"name":"think","type":"tool_use"}],"role":"assistant"},{"content":[{"content":[{"text":"The customer has multiple questions:\n1. Refund for 1 unit of Product A at $25 each\n2. Whether Product C is in stock (for the exchange of 2 units of Product B)\n3. Express shipping cost for the exchanged items (2 units of Product C)\n4. Cost to buy Product A + 2 Product B with standard shipping\n\nI need to:\n- Look up customer policy (for return/refund info)\n- Look up product inventory (for Product C stock)\n- Look up shipping rates (for express and standard shipping)\n- Calculate the refund amount\n- Calculate the total cost for Product A + 2 Product B + standard shipping\n\nI can look up all three database queries and start the refund calculation simultaneously since I already have the price info for the refund.","type":"text"}],"tool_use_id":"toolu_REDACTED_1","type":"tool_result"}],"role":"user"},{"content":[{"text":"I''ll look everything up at once! Let me fetch the policy, inventory, and shipping rates all simultaneously.","type":"text"},{"id":"toolu_REDACTED_2","input":{"query":"customer_policy"},"name":"database_lookup","type":"tool_use"},{"id":"toolu_REDACTED_3","input":{"query":"product_inventory"},"name":"database_lookup","type":"tool_use"},{"id":"toolu_REDACTED_4","input":{"query":"shipping_rates"},"name":"database_lookup","type":"tool_use"}],"role":"assistant"},{"content":[{"content":[{"text":"Customers can return items within 30 days with a receipt for a full refund.","type":"text"}],"tool_use_id":"toolu_REDACTED_2","type":"tool_result"},{"content":[{"text":"Product A: 15 units, Product B: 8 units, Product C: Out of stock","type":"text"}],"tool_use_id":"toolu_REDACTED_3","type":"tool_result"},{"content":[{"text":"Standard shipping: $5.99, Express shipping: $15.99, Next-day shipping: $29.99","type":"text"}],"tool_use_id":"toolu_REDACTED_4","type":"tool_result"}],"role":"user"},{"content":[{"id":"toolu_REDACTED_5","input":{"thought":"Now I have all the information. Let me plan the calculations:\n\n1. Refund for 1 unit of Product A: 1 × $25 = $25 (full refund per policy)\n2. Product C is OUT OF STOCK - I need to inform the customer\n3. Express shipping for exchanged items (2 units of Product C): $15.99 — but since Product C is out of stock, this may be moot, but I''ll still provide the rate\n4. Cost to buy Product A + 2 Product B with standard shipping:\n   - Product A: 1 × $25 = $25\n   - 2 × Product B: 2 × $40 = $80\n   - Standard shipping: $5.99\n   - Total: $25 + $80 + $5.99 = $110.99\n\nLet me calculate these."},"name":"think","type":"tool_use"}],"role":"assistant"},{"content":[{"content":[{"text":"Now I have all the information. Let me plan the calculations:\n\n1. Refund for 1 unit of Product A: 1 × $25 = $25 (full refund per policy)\n2. Product C is OUT OF STOCK - I need to inform the customer\n3. Express shipping for exchanged items (2 units of Product C): $15.99 — but since Product C is out of stock, this may be moot, but I''ll still provide the rate\n4. Cost to buy Product A + 2 Product B with standard shipping:\n   - Product A: 1 × $25 = $25\n   - 2 × Product B: 2 × $40 = $80\n   - Standard shipping: $5.99\n   - Total: $25 + $80 + $5.99 = $110.99\n\nLet me calculate these.","type":"text"}],"tool_use_id":"toolu_REDACTED_5","type":"tool_result"}],"role":"user"},{"content":[{"text":"Now let me run the calculations simultaneously!","type":"text"},{"id":"toolu_REDACTED_6","input":{"expression":"1 * 25"},"name":"calculator","type":"tool_use"},{"id":"toolu_REDACTED_7","input":{"expression":"25 + (2 * 40) + 5.99"},"name":"calculator","type":"tool_use"}],"role":"assistant"},{"content":[{"content":[{"text":"25.0","type":"text"}],"tool_use_id":"toolu_REDACTED_6","type":"tool_result"},{"content":[{"text":"110.99","type":"text"}],"tool_use_id":"toolu_REDACTED_7","type":"tool_result"}],"role":"user"}],"model":"claude-sonnet-4-6","system":[{"text":"You are a customer service agent for an online store.\n            You have access to several tools:\n\n            1. The ''think'' tool allows you to reason through complex problems step by step.\n               Use it when you need to analyze information or plan your response.\n\n            2. The ''calculator'' tool can perform arithmetic using expressions.\n\n            3. The ''database_lookup'' tool can retrieve information about store policies,\n               shipping rates, and product inventory.\n\n            When handling customer inquiries, use the ''think'' tool to analyze the situation\n            before responding or using other tools.","type":"text"}],"tools":[{"description":"Use the tool to think about something. It will not obtain new information\n            or change the database, but just append the thought to the log. Use it when complex\n            reasoning or some cache memory is needed.","input_schema":{"properties":{"thought":{"description":"A thought to think about.","type":"string"}},"required":["thought"],"type":"object"},"name":"think"},{"description":"Evaluate arithmetic expressions with +, -, *, /, and parentheses.","input_schema":{"properties":{"expression":{"description":"An arithmetic expression such as ''25 + (2 * 40)''","type":"string"}},"required":["expression"],"type":"object"},"name":"calculator"},{"description":"Look up customer_policy, shipping_rates, or product_inventory.","input_schema":{"properties":{"query":{"description":"One of customer_policy, shipping_rates, or product_inventory","type":"string"}},"required":["query"],"type":"object"},"name":"database_lookup"}]}'
then:
  status: 200
  header:
  - name: content-type
    value: application/json
  body: '{"content":[{"text":"Here''s a full breakdown of everything you asked about:\n\n---\n\n### 1. 💰 Refund for Returning 1 Unit of Product A\nPer our **30-day return policy**, you''re eligible for a **full refund of $25.00** for 1 unit of Product A (with receipt).\n\n---\n\n### 2. 📦 Product C Stock Status — ⚠️ Out of Stock!\nUnfortunately, **Product C is currently out of stock**, which means the exchange of your 2 units of Product B for Product C **cannot be processed at this time**. You may want to wait until it''s restocked or consider an alternative product.\n\n---\n\n### 3. 🚚 Express Shipping for Exchanged Items (2x Product C)\nExpress shipping is a **flat rate of $15.99**. However, since Product C is out of stock, this would only apply once the item becomes available.\n\n---\n\n### 4. 🛒 Cost to Buy Product A + 2x Product B with Standard Shipping\n| Item | Price |\n|---|---|\n| 1x Product A | $25.00 |\n| 2x Product B ($40 each) | $80.00 |\n| Standard Shipping | $5.99 |\n| **Total** | **$110.99** |\n\n---\n\n### Summary\n| Question | Answer |\n|---|---|\n| Refund for 1x Product A | **$25.00** |\n| Product C in stock? | **❌ Out of stock** |\n| Express shipping for exchange | **$15.99** (pending restock) |\n| Product A + 2x Product B + standard shipping | **$110.99** |\n\nLet me know if there''s anything else I can help you with! 😊","type":"text"}],"id":"msg_REDACTED_5","model":"claude-sonnet-4-6","role":"assistant","stop_details":null,"stop_reason":"end_turn","stop_sequence":null,"type":"message","usage":{"cache_creation":{"ephemeral_1h_input_tokens":0,"ephemeral_5m_input_tokens":0},"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"inference_geo":"global","input_tokens":2377,"output_tokens":419,"service_tier":"standard"}}'
