J.

Jev Notification importance Code Example

Choose what deserves an interruption.

Weekly usage digest ready.

Event Weekly usage digest ready.
User Activity presenting
Unread Alerts 0

How should this notification be delivered?

0% Digest.
Digest 94%
Immediate 4%
Suppress 2%

Let the application digest.

Code
Conceptual pseudocode — not official Jev SDK syntax
// Conceptual pseudocode — not Jev SDK syntax
const state = {
  "event": "Weekly usage digest ready.",
  "user_activity": "presenting",
  "unread_alerts": 0
};

const decision = await evaluateDecision({
  state,
  question: "How should this notification be delivered?",
  options: ["Digest","Immediate","Suppress"],
});

// Your adapter normalizes the provider response.
// Tune this example threshold on labelled data.
if (decision.outcome === "Digest"
    && decision.probability >= 0.85) {
  scheduleNotification(decision);
} else {
  queueForReview(decision);
}

This adapter illustrates the decision boundary. Check the official Jev docs for current API syntax.