← All examples
99 / 100
Jev Exception queue prioritization Code Example
Put time-sensitive failures ahead of harmless retries.
Payroll export rejected
Failure Payroll export rejected
Deadline in 2 hours
Fallback No
Which exception priority fits?
0%
Immediate review.
Send it to immediate review.
Code
// Conceptual pseudocode — not Jev SDK syntax
const state = {
"failure": "Payroll export rejected",
"deadline": "in 2 hours",
"fallback": false
};
const decision = await evaluateDecision({
state,
question: "Which exception priority fits?",
options: ["Immediate review","Next working day","Routine"],
});
// Your adapter normalizes the provider response.
// Tune this example threshold on labelled data.
if (decision.outcome === "Immediate review"
&& decision.probability >= 0.85) {
prioritizeException(decision);
} else {
queueForReview(decision);
} This adapter illustrates the decision boundary. Check the official Jev docs for current API syntax.