← All examples
4 / 100
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.
Let the application rewrite.
Code
// 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.