J.

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.
Update courier instructions 94%
Refund review 4%
Wait 2%

Let the application update courier instructions.

Code
Conceptual pseudocode — not official Jev SDK syntax
// 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.