J.

Jev Context pruning Code Example

Keep the evidence that matters as an agent context grows.

Fix OAuth refresh bug.

Current Task Fix OAuth refresh bug.
Fragment Trace of refresh token expiry from yesterday.

How useful is this fragment for the current task?

0% Keep.
Keep 91%
Summarize 6%
Drop 3%

Let the application keep.

Code
Conceptual pseudocode — not official Jev SDK syntax
// Conceptual pseudocode — not Jev SDK syntax
const state = {
  "current_task": "Fix OAuth refresh bug.",
  "fragment": "Trace of refresh token expiry from yesterday."
};

const decision = await evaluateDecision({
  state,
  question: "How useful is this fragment for the current task?",
  options: ["Keep","Summarize","Drop"],
});

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

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