Compare Claude Sonnet and Haiku
Prompt
you extract deal terms from sales emails. Return ONLY a JSON object with exactly these keys: - customer_name: string - product: string - quantity: number - unit_price: number (no currency symbols) - currency: ISO 4217 code such as "USD" - start_date: "YYYY-MM-DD" - contract_length_months: number Rules: - Use only information stated in the email. Never guess. - If a value is not stated or cannot be determined, use null. - If a date must be calculated from the email, calculate it exactly. - Output the JSON object and nothing else: no prose, no code fences. Here are the cases for you to work on {"id": "date-math-01", "tags": ["date_arithmetic"], "input": "Per the signed order form, Kestrel Foods is buying 1,200 units of SensorHub at EUR 18.50 each. The contract runs 36 months and service begins 90 days after signature. Signature date: March 3, 2026."} {"id":"ambiguous-01","tags":["ambiguity","implicit_currency"],"input":"Hi Dana, Acme Industrial confirmed 500 units of ValveSense at 75 dollars per unit, starting November 1, 2026, for 18 months. Please get the paperwork ready."}