J.

Jev Evidence sufficiency Code Example

Make an agent retrieve more before it answers from thin evidence.

What is our enterprise retention policy?

Question What is our enterprise retention policy?
Retrieved A marketing page mentions flexible storage.

Does the retrieved material support an answer?

0% Retrieve more.
Retrieve more 94%
Answer 4%
Ask user 2%

Let the application retrieve more.

Code
Conceptual pseudocode — not official Jev SDK syntax
// Conceptual pseudocode — not Jev SDK syntax
const state = {
  "question": "What is our enterprise retention policy?",
  "retrieved": "A marketing page mentions flexible storage."
};

const decision = await evaluateDecision({
  state,
  question: "Does the retrieved material support an answer?",
  options: ["Retrieve more","Answer","Ask user"],
});

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

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