J.

Jev Human handoff Code Example

Know when an agent should step aside.

The customer has tried three times and asks to speak to someone.

Message This is the third time. Please let me talk to someone.
Failed Attempts 3

Should a person take over?

0% Hand off.
Hand off 88%
Continue 8%
Ask a question 4%

Hand the conversation to a human.

Code
Conceptual pseudocode — not official Jev SDK syntax
// Conceptual pseudocode — not Jev SDK syntax
const state = {
  "message": "This is the third time. Please let me talk to someone.",
  "failed_attempts": 3
};

const decision = await evaluateDecision({
  state,
  question: "Should a person take over?",
  options: ["Hand off","Continue","Ask a question"],
});

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

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