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":"A train leaves Station A at 60 km/h. Another train leaves Station B (300 km away) 30 minutes later at 90 km/h heading toward Station A. At what time do they meet, and how far from Station A? Show your work.","type":"text"}],"role":"user"}],"model":"claude-sonnet-4-6","system":[{"text":"You are a helpful math tutor. Be concise.","type":"text"}],"thinking":{"type":"adaptive"}}'
then:
  status: 200
  header:
  - name: content-type
    value: application/json
  body: '{"content":[{"signature":"signature_REDACTED_1","thinking":"Let me set up the problem. Train A leaves Station A at 60 km/h. Train B leaves Station B (300 km away) 30 minutes later at 90 km/h heading toward Station A.\n\nLet t = time in hours after Train B departs.\n\nIn those 30 minutes before Train B departs, Train A has already traveled: 60 × 0.5 = 30 km\n\nRemaining distance between them when Train B departs: 300 - 30 = 270 km\n\nThey''re moving toward each other, so combined speed = 60 + 90 = 150 km/h\n\n\nNow I can find when they meet. At their combined speed of 150 km/h, they''ll cover the remaining 270 km in 1.8 hours. During that time, Train A travels another 108 km, putting it 138 km from Station A. So the trains meet 2 hours and 18 minutes after Train A''s initial departure.","type":"thinking"},{"text":"## Setting Up the Problem\n\n**Let t = hours after Train B departs**\n\n### Step 1: Find the Head Start\nTrain A travels for 30 min (0.5 hr) before Train B leaves:\n$$d_{headstart} = 60 \\times 0.5 = 30 \\text{ km}$$\n\n### Step 2: Remaining Gap When Train B Departs\n$$300 - 30 = 270 \\text{ km apart}$$\n\n### Step 3: Combined Closing Speed\nBoth trains move toward each other:\n$$60 + 90 = 150 \\text{ km/h}$$\n\n### Step 4: Time Until They Meet\n$$t = \\frac{270}{150} = 1.8 \\text{ hours} = \\textbf{1 hr 48 min}$$\n\n---\n\n## Results\n\n| | Calculation | Result |\n|---|---|---|\n| **Distance Train A covers total** | 30 + (60 × 1.8) | **138 km from A** |\n| **Distance Train B covers** | 90 × 1.8 | 162 km from B ✓ |\n| **Check:** | 138 + 162 = 300 ✓ | ✅ |\n\n**Meeting time:** 2 hours 18 minutes after Train A departs\n\n**Meeting point:** **138 km from Station A**","type":"text"}],"id":"msg_REDACTED_1","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":79,"output_tokens":611,"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":"A train leaves Station A at 60 km/h. Another train leaves Station B (300 km away) 30 minutes later at 90 km/h heading toward Station A. At what time do they meet, and how far from Station A? Show your work.","type":"text"}],"role":"user"},{"content":[{"signature":"signature_REDACTED_1","thinking":"Let me set up the problem. Train A leaves Station A at 60 km/h. Train B leaves Station B (300 km away) 30 minutes later at 90 km/h heading toward Station A.\n\nLet t = time in hours after Train B departs.\n\nIn those 30 minutes before Train B departs, Train A has already traveled: 60 × 0.5 = 30 km\n\nRemaining distance between them when Train B departs: 300 - 30 = 270 km\n\nThey''re moving toward each other, so combined speed = 60 + 90 = 150 km/h\n\n\nNow I can find when they meet. At their combined speed of 150 km/h, they''ll cover the remaining 270 km in 1.8 hours. During that time, Train A travels another 108 km, putting it 138 km from Station A. So the trains meet 2 hours and 18 minutes after Train A''s initial departure.","type":"thinking"},{"text":"## Setting Up the Problem\n\n**Let t = hours after Train B departs**\n\n### Step 1: Find the Head Start\nTrain A travels for 30 min (0.5 hr) before Train B leaves:\n$$d_{headstart} = 60 \\times 0.5 = 30 \\text{ km}$$\n\n### Step 2: Remaining Gap When Train B Departs\n$$300 - 30 = 270 \\text{ km apart}$$\n\n### Step 3: Combined Closing Speed\nBoth trains move toward each other:\n$$60 + 90 = 150 \\text{ km/h}$$\n\n### Step 4: Time Until They Meet\n$$t = \\frac{270}{150} = 1.8 \\text{ hours} = \\textbf{1 hr 48 min}$$\n\n---\n\n## Results\n\n| | Calculation | Result |\n|---|---|---|\n| **Distance Train A covers total** | 30 + (60 × 1.8) | **138 km from A** |\n| **Distance Train B covers** | 90 × 1.8 | 162 km from B ✓ |\n| **Check:** | 138 + 162 = 300 ✓ | ✅ |\n\n**Meeting time:** 2 hours 18 minutes after Train A departs\n\n**Meeting point:** **138 km from Station A**","type":"text"}],"role":"assistant"},{"content":[{"text":"Now suppose both trains slow down by 10 km/h after traveling half the original distance. When do they meet now?","type":"text"}],"role":"user"}],"model":"claude-sonnet-4-6","system":[{"text":"You are a helpful math tutor. Be concise.","type":"text"}],"thinking":{"type":"adaptive"}}'
then:
  status: 200
  header:
  - name: content-type
    value: application/json
  body: '{"content":[{"signature":"signature_REDACTED_2","thinking":"Let me carefully re-read the problem. \"Both trains slow down by 10 km/h after traveling half the original distance.\"\n\n\"Half the original distance\" - I need to interpret this. The original distance between the stations is 300 km. Half of that is 150 km.\n\nSo each train slows down after traveling 150 km.\n\nTrain A: travels at 60 km/h for the first 150 km, then at 50 km/h after that.\nTrain B: travels at 90 km/h for the first 150 km, then at 80 km/h after that.\n\n\nNow I''m calculating when each train hits that 150 km mark. Train A reaches it in 2.5 hours, while Train B gets there in about 1.67 hours after its own departure, which is 2.17 hours from when Train A started. I need to set up a timeline with Train A''s departure as t = 0 and track both trains'' positions as they move toward each other. Let me recalculate Train B''s timeline more carefully. Train B departs at t = 0.5 hr and travels 150 km at 90 km/h, which takes 5/3 hours, so it reaches the halfway point at t = 13/6 hr. After that, it continues at 80 km/h for the remaining 150 km.\n\nNow I''m checking whether the trains meet before or after their respective slowdown points. At t = 2.167 hr when Train B slows down, Train A is at 130 km while Train B is at the 150 km mark, creating a 20 km gap. By t = 2.5 hr when Train A slows down, Train A reaches 150 km, and I need to calculate where Train B is at that moment.\n\nSetting up the equation for when they might meet between these two slowdown points—where Train A continues at 60 km/h and Train B is already decelerating at 80 km/h—I get t = 1940/(840), which simplifies to approximately 2.31 hours.\n\nChecking if this falls within the valid interval: 13/6 ≈ 2.167 and 2.5, so yes, 97/42 ≈ 2.31 is in range. Converting to hours and minutes, that''s about 2 hours and 18.6 minutes after Train A departs. Both trains are at the same position—roughly 138.57 km from Station A—confirming they meet at this time. ≈ 18.57 minutes\n\nSo approximately 2 hours 18 minutes 34 seconds after Train A departs.\n\nLet me reconsider what \"half the original distance\" means. The 300 km between stations is the original distance, so half would be 150 km. Each train slows down after traveling 150 km from its starting point.\n\nNow I''m verifying my setup: Train A reaches 150 km in 2.5 hours at 60 km/h, then slows to 50 km/h. Train B reaches 150 km in 5/3 hours at 90 km/h, then slows to 80 km/h. Since Train B departs 0.5 hours later, that''s 13/6 hours from when Train A started.\n\nThey meet at t = 97/42 hours (about 2 hours 18 minutes 34 seconds) after Train A departs, at approximately 138.57 km from Station A.\n\nNow I''m breaking down the motion into phases. In the first half hour, only Train A is moving at 60 km/h while Train B hasn''t departed yet. Once Train B starts, both trains are moving at full speed until they reach their respective slowdown points. Let me check if they meet during this second phase by setting their positions equal.\n\nThe calculation shows they''d meet at t = 2.3 hours, but that''s outside the valid time window for this phase since Train B starts slowing down at t ≈ 2.167 hours. So I need to check what happens in the third phase when Train A maintains 60 km/h but Train B drops to 80 km/h. Setting their positions equal again gives t ≈ 2.31 hours, which I need to verify falls within this phase''s time window.","type":"thinking"},{"text":"## Setup & Key Assumption\n\n> **\"Half the original distance\" = 150 km** (half of 300 km)\n> - Train A: slows 60 → 50 km/h after 150 km\n> - Train B: slows 90 → 80 km/h after 150 km\n\nLet **t = hours after Train A departs** (Train B still departs 0.5 hr later)\n\n---\n\n## Phase-by-Phase Tracking\n\n### Phase 1 | t = 0 to 0.5 hr — Only Train A moves\n$$\\text{Train A covers: } 60 \\times 0.5 = 30 \\text{ km} \\quad \\Rightarrow \\text{Gap} = 270 \\text{ km}$$\n\n### Phase 2 | t = 0.5 to 13/6 hr — Both at full speed\nTrain B hits 150 km at: $t = 0.5 + \\frac{150}{90} = \\frac{13}{6} \\approx 2.167$ hr\n\n**Check if they meet:** $60t = 300 - 90(t-0.5)$ → $t = 2.3$ hr\n\n⚠️ But **2.3 > 2.167**, so they **don''t meet** before Train B slows down.\n\nAt $t = \\tfrac{13}{6}$: Train A is at **130 km**, Train B at **150 km** → gap = **20 km**\n\n### Phase 3 | t = 13/6 to 2.5 hr — Train A @ 60, Train B @ 80\n$$\\text{Train A: } 60t \\qquad \\text{Train B: } 150 - 80\\!\\left(t - \\tfrac{13}{6}\\right)$$\n\n**Set positions equal:**\n$$60t = 150 - 80t + \\frac{80 \\times 13}{6}$$\n$$140t = 150 + \\frac{1040}{6} = \\frac{900 + 1040}{6} = \\frac{1940}{6}$$\n$$\\boxed{t = \\frac{97}{42} \\approx 2.310 \\text{ hr}}$$\n\n✅ Confirmed in Phase 3: $\\tfrac{91}{42} < \\tfrac{97}{42} < \\tfrac{105}{42}$\n\n---\n\n## Results\n\n| | Value |\n|---|---|\n| **Meeting time** | $\\frac{97}{42}$ hr = **2 hr 18 min 34 sec** after Train A departs |\n| **Distance from A** | $60 \\times \\frac{97}{42} = \\frac{970}{7} \\approx$ **138.6 km** |\n\n**Verification:** Train B''s position = $150 - 80\\!\\left(\\tfrac{97}{42}-\\tfrac{13}{6}\\right) = 150 - \\tfrac{80}{7} = \\tfrac{970}{7}$ ✓\n\n---\n\n## Comparison with Original\n\n| Scenario | Meeting Time | Distance from A |\n|---|---|---|\n| Original | 2 hr 18.0 min | 138.0 km |\n| With slowdown | 2 hr 18.6 min | 138.6 km |\n\nThe slowdown causes only a **slight delay** (~34 sec further) because Train B slows first, narrowing the gap more slowly over just a 20 km stretch.","type":"text"}],"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":719,"output_tokens":3500,"service_tier":"standard"}}'
