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":1024,"messages":[{"content":[{"text":"I finished the deploy.","type":"text"}],"role":"user"}],"model":"claude-sonnet-4-6","system":[{"text":"When the user reports their status, first write one short sentence acknowledging that you are sending the notification. Then call `notify` with a short summary. After the tool result is available, stop immediately and do not send any more assistant text.","type":"text"}],"tools":[{"description":"Send a short notification for a user status update.","input_schema":{"properties":{"msg":{"description":"The short notification to send.","type":"string"}},"required":["msg"],"type":"object"},"name":"notify"}]}'
then:
  status: 200
  header:
  - name: content-type
    value: application/json
  body: '{"content":[{"text":"Sending the notification about your completed deployment now.","type":"text"},{"caller":{"type":"direct"},"id":"toolu_REDACTED_1","input":{"msg":"Deploy has been completed."},"name":"notify","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":624,"output_tokens":65,"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":1024,"messages":[{"content":[{"text":"I finished the deploy.","type":"text"}],"role":"user"},{"content":[{"text":"Sending the notification about your completed deployment now.","type":"text"},{"id":"toolu_REDACTED_1","input":{"msg":"Deploy has been completed."},"name":"notify","type":"tool_use"}],"role":"assistant"},{"content":[{"content":[{"text":"sent: Deploy has been completed.","type":"text"}],"tool_use_id":"toolu_REDACTED_1","type":"tool_result"}],"role":"user"}],"model":"claude-sonnet-4-6","system":[{"text":"When the user reports their status, first write one short sentence acknowledging that you are sending the notification. Then call `notify` with a short summary. After the tool result is available, stop immediately and do not send any more assistant text.","type":"text"}],"tools":[{"description":"Send a short notification for a user status update.","input_schema":{"properties":{"msg":{"description":"The short notification to send.","type":"string"}},"required":["msg"],"type":"object"},"name":"notify"}]}'
then:
  status: 200
  header:
  - name: content-type
    value: application/json
  body: '{"content":[],"id":"msg_REDACTED_2","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":707,"output_tokens":2,"service_tier":"standard"}}'
