File size: 2,957 Bytes
79abb8e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
"""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?", "")]),
]