"""The demo's example states and questions (shared by app.py and the offline test).""" import json EX = [ ("๐ŸŽซ Support ticket", "Hi โ€” I was charged twice for order #4471 and it's been three weeks. Nobody answers my emails. If this isn't fixed by Friday I'm disputing it with my bank.", [("Choice", "What is the ticket about?", "billing: charges, refunds, invoices\nshipping: delivery and tracking\naccount: login and profile\nproduct: how the product works"), ("Yes / No", "Should a human supervisor take this over?", ""), ("Score", "How urgent is it?", "not urgent\nlow\nmedium\nhigh\ncritical")]), ("๐Ÿ™ƒ Sarcasm", "Oh fantastic, the update moved every button I use and added a chatbot I never asked for. Truly the highlight of my week.", [("Yes / No", "Is the writer being sarcastic?", ""), ("Choice", "How does the writer feel about the update?", "positive\nmixed\nnegative")]), ("๐Ÿงญ Model routing", "Prove that the square root of 2 is irrational, then explain the proof to a 12-year-old.", [("Choice", "Which model should answer this prompt?", "small: a fast small model, fine for simple chat\nmid: a mid-size model for everyday tasks\nfrontier: a frontier reasoning model for hard problems"), ("Yes / No", "Does answering need a live web search?", "")]), ("โš™๏ธ Autoscaler", json.dumps({"service": "checkout-api", "cpu_percent": 97, "memory_percent": 41, "error_rate": 0.002, "latency_p99_ms": 2400, "replicas": 3, "max_replicas": 12}, indent=2), [("Choice", "What should the autoscaler do?", "scale_up: add replicas\nscale_down: remove replicas\nno_change: keep as is\npage_oncall: wake a human"), ("Yes / No", "Is this an incident right now?", "")]), ("๐Ÿ›ก๏ธ Agent gate", json.dumps({"agent": "repo-assistant", "user_request": "clean up the old branches", "proposed_tool_call": {"name": "git_push", "args": {"branch": "main", "force": True}}}, indent=2), [("Yes / No", "Should the agent run this without asking the user first?", ""), ("Yes / No", "Does the action match what the user asked for?", ""), ("Score", "How risky is this action?", "harmless\nlow\nmoderate\nhigh\ndestructive")]), ("๐Ÿ” Duplicates", json.dumps({"report_a": "App crashes when I rotate the phone on the checkout screen (Android 15).", "report_b": "Checkout page closes itself if I turn my Pixel sideways."}, indent=2), [("Yes / No", "Are these two reports about the same bug?", ""), ("Choice", "Which team should own it?", "mobile\nbackend\npayments\ndesign")]), ("๐Ÿงน Moderation", "๐Ÿ”ฅ Make $5,000 a week from home!!! DM me 'RICH' โ€” only 10 spots left ๐Ÿ”ฅ", [("Choice", "What is this post?", "normal: a normal community post\nspam: promotion or scam\nharassment: attacks a person\nsexual: sexual content"), ("Yes / No", "Should it be removed?", "")]), ]