J.

Jev Reply quality check Code Example

Catch a draft that misses the actual problem.

Export fails on Safari.

Request Export fails on Safari.
Draft Here is how to change your password.

Does the draft address the request?

0% Rewrite.
Rewrite 94%
Send 4%
Review 2%

Let the application rewrite.

Code
Conceptual pseudocode — not official Jev SDK syntax
// Conceptual pseudocode — not Jev SDK syntax
const state = {
  "request": "Export fails on Safari.",
  "draft": "Here is how to change your password."
};

const decision = await evaluateDecision({
  state,
  question: "Does the draft address the request?",
  options: ["Rewrite","Send","Review"],
});

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

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