← All examples
6 / 100
Jev SLA triage Code Example
Surface business impact before a queue becomes a bottleneck.
Production checkout is down.
Message Production checkout is down.
Affected Users 420
Workaround No
What priority should this case receive?
0%
Urgent.
Let the application urgent.
Code
// Conceptual pseudocode — not Jev SDK syntax
const state = {
"message": "Production checkout is down.",
"affected_users": 420,
"workaround": false
};
const decision = await evaluateDecision({
state,
question: "What priority should this case receive?",
options: ["Urgent","Normal","Low"],
});
// Your adapter normalizes the provider response.
// Tune this example threshold on labelled data.
if (decision.outcome === "Urgent"
&& decision.probability >= 0.85) {
prioritizeCase(decision);
} else {
queueForReview(decision);
} This adapter illustrates the decision boundary. Check the official Jev docs for current API syntax.