← All examples
32 / 100
Jev Delivery exception Code Example
Choose the next step when a shipment goes off course.
Address inaccessible twice.
Tracking Address inaccessible twice.
Customer Note Gate code is 4120.
Parcel Status at depot
What should operations do next?
0%
Update courier instructions.
Let the application update courier instructions.
Code
// Conceptual pseudocode — not Jev SDK syntax
const state = {
"tracking": "Address inaccessible twice.",
"customer_note": "Gate code is 4120.",
"parcel_status": "at depot"
};
const decision = await evaluateDecision({
state,
question: "What should operations do next?",
options: ["Update courier instructions","Refund review","Wait"],
});
// Your adapter normalizes the provider response.
// Tune this example threshold on labelled data.
if (decision.outcome === "Update courier instructions"
&& decision.probability >= 0.85) {
queueDeliveryAction(decision);
} else {
queueForReview(decision);
} This adapter illustrates the decision boundary. Check the official Jev docs for current API syntax.