J.

Jev Memory worth keeping Code Example

Keep durable preferences out of a pile of transient details.

Always show my reports in Brisbane time.

Message Always show my reports in Brisbane time.
Existing Memory none

Should this become a saved preference?

0% Save preference.
Save preference 72%
Session only 20%
Ignore 8%

Let the application save preference.

Code
Conceptual pseudocode — not official Jev SDK syntax
// Conceptual pseudocode — not Jev SDK syntax
const state = {
  "message": "Always show my reports in Brisbane time.",
  "existing_memory": "none"
};

const decision = await evaluateDecision({
  state,
  question: "Should this become a saved preference?",
  options: ["Save preference","Session only","Ignore"],
});

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

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