← All examples
82 / 100
Jev Thread de-escalation Code Example
Notice a discussion drifting from disagreement into personal attacks.
Repeated insults replacing discussion of the proposal.
Recent Messages Repeated insults replacing discussion of the proposal.
Warnings 0
Which moderator intervention fits?
0%
Remind and monitor.
Let the application remind and monitor.
Code
// Conceptual pseudocode — not Jev SDK syntax
const state = {
"recent_messages": "Repeated insults replacing discussion of the proposal.",
"warnings": 0
};
const decision = await evaluateDecision({
state,
question: "Which moderator intervention fits?",
options: ["Remind and monitor","No action","Escalate review"],
});
// Your adapter normalizes the provider response.
// Tune this example threshold on labelled data.
if (decision.outcome === "Remind and monitor"
&& decision.probability >= 0.85) {
suggestModeratorIntervention(decision);
} else {
queueForReview(decision);
} This adapter illustrates the decision boundary. Check the official Jev docs for current API syntax.