← All examples
8 / 100
Jev Reopen a resolved case Code Example
Distinguish a polite thank-you from an unresolved issue.
Thanks, but the same error is back today.
Message Thanks, but the same error is back today.
Case Status resolved
Should this case reopen?
0%
Reopen.
Let the application reopen.
Code
// Conceptual pseudocode — not Jev SDK syntax
const state = {
"message": "Thanks, but the same error is back today.",
"case_status": "resolved"
};
const decision = await evaluateDecision({
state,
question: "Should this case reopen?",
options: ["Reopen","Keep resolved","Clarify"],
});
// Your adapter normalizes the provider response.
// Tune this example threshold on labelled data.
if (decision.outcome === "Reopen"
&& decision.probability >= 0.85) {
reopenCase(decision);
} else {
queueForReview(decision);
} This adapter illustrates the decision boundary. Check the official Jev docs for current API syntax.