Support · basic
Routage du support
Router une demande vers une file support et évaluer son urgence.
choicescore
Quand l’utiliser
- Ticket routing
- Queue prioritization
- Support automation
Exemple de state
{
"message": "My card was charged, but the upgrade never appeared.",
"customer_plan": "Starter",
"payment_status": "settled"
}Questions de décision
choicequeue
Choose the primary support queue for this case.
billing— Payment, invoice, or charge issueaccount— Account, access, or entitlement issuetechnical— Product behavior or technical failurecancellation— Subscription cancellationother— None is clearly primary
scoreurgency
Score review urgency from 0 to 3.
- 0 — routine; no time-sensitive impact
- 1 — minor impact
- 2 — active customer impact
- 3 — severe or time-critical customer impact
Sortie attendue
One primary queue plus an expected urgency score from the ordered rubric.
TypeScript
import { choice, score, TypeSafeClient } from "@typesafe-ai/sdk";
const client = new TypeSafeClient();
const result = await client.systemOne({
state: {
message: "My card was charged, but the upgrade never appeared.",
customer_plan: "Starter",
payment_status: "settled",
},
questions: {
queue: choice("Choose the primary support queue.", {
billing: "Payment, invoice, or charge issue",
account: "Account, access, or entitlement issue",
technical: "Product behavior or technical failure",
cancellation: "Subscription cancellation",
other: "None is clearly primary",
}),
urgency: score("Score review urgency.", [
"Routine",
"Minor impact",
"Active customer impact",
"Severe or time-critical impact",
]),
},
});Pourquoi ce modèle fonctionne
- A primary-route instruction resolves cases that could plausibly fit multiple queues.
- The urgency rubric is explicit instead of asking for an undefined number.
Limites
- Routing should not silently discard secondary issues.
- Urgency is a triage signal, not a service-level agreement.
Source officielle
2026-09-21
Étape suivante: Jev Playground、Modèles。