[ { "state": "Shoes arrived two weeks late and in the wrong size. Also I see two charges on my card. Fix this today.", "questions": { "department": { "type": "choice", "instructions": "Which team should handle this?", "criteria": { "billing": "Charges, invoices, payment problems", "returns": "Exchanges, refunds, wrong or damaged items", "shipping": "Delivery status, delays, lost packages" } }, "escalate": { "type": "noul", "instructions": "Does this need urgent human attention?" }, "frustration": { "type": "score", "instructions": "How frustrated is the customer?", "criteria": [ "Calm", "Frustrated", "Very angry" ] } }, "answers": { "department": { "type": "choice", "choice": "returns", "confidence": 0.33, "probabilities": { "billing": 0.16, "returns": 0.55, "shipping": 0.29 } }, "escalate": { "type": "noul", "noul": 0.93 }, "frustration": { "type": "score", "score": 1.53, "legend": { "0": "Calm", "1": "Frustrated", "2": "Very angry" }, "probabilities": { "0": 0.02, "1": 0.43, "2": 0.55 }, "confidence": 0.76 } }, "raw_probs": [ [ 0.16102033853530884, 0.5518447756767273, 0.2871348559856415 ], [ 0.0685044676065445, 0.9314954876899719 ], [ 0.022444142028689384, 0.4272582530975342, 0.5502975583076477 ] ], "n_tokens": 105 }, { "state": "The agent wants to run: rm -rf ./build && git push --force origin main", "questions": { "verdict": { "type": "choice", "instructions": "Should this command be allowed to run without asking?", "criteria": { "allow": "safe and reversible", "ask": "needs human confirmation", "deny": "destructive and should never run" } }, "destructive": { "type": "noul", "instructions": "Could this command cause irreversible data loss?", "criteria": { "true": "deletes or overwrites data with no recovery", "false": "read-only or trivially undone" } } }, "answers": { "verdict": { "type": "choice", "choice": "ask", "confidence": 0.52, "probabilities": { "allow": 0.15, "ask": 0.68, "deny": 0.18 } }, "destructive": { "type": "noul", "noul": 0.96 } }, "raw_probs": [ [ 0.14705976843833923, 0.677263081073761, 0.17567721009254456 ], [ 0.03905380144715309, 0.9609462022781372 ] ], "n_tokens": 86 }, { "state": { "messages": [ { "role": "user", "content": "hi, can you change my email address?" } ] }, "questions": { "intent": { "type": "choice", "instructions": "What does the user want?", "criteria": { "account_update": null, "billing": null, "none": null, "support": null } } }, "answers": { "intent": { "type": "choice", "choice": "account_update", "confidence": 0.74, "probabilities": { "account_update": 0.8, "billing": 0.01, "none": 0.15, "support": 0.04 } } }, "raw_probs": [ [ 0.8046554327011108, 0.010955644771456718, 0.1480247676372528, 0.036364130675792694 ] ], "n_tokens": 43 } ]