Jev AI Hub
Start Learning

Concepts

Confidence-Gated Routing

Use the answer to choose an action and the confidence to decide whether to take it. Thresholds stay in your code.

Quick answer

Choice and Score return a selected value and a separate confidence. Noul returns one probability and no confidence field. Official docs describe a three-way gate: act, confirm, or escalate. The cutoffs in those docs are examples. You pick the numbers from your own labels, and you keep them in code.

The answer tells you which branch. Confidence tells you whether to take it without a person.

Two numbers on a Choice

A Choice response carries:

  • choice, the winning option
  • probabilities, one weight per option
  • confidence, derived from the shape of that distribution

Official confidence docs approximate three-option confidence as (3 × largest probability − 1) / 2. You can ignore that summary and threshold on a rule of your own, as long as the rule is in code where a reviewer can see it.

answer = response.answers["department"]

if answer.confidence >= 0.9:
    route(answer.choice, ticket)
elif answer.confidence >= 0.5:
    ask_for_confirmation(answer.choice, ticket)
else:
    route_to_human(ticket)

Those cutoffs are placeholders. Plot confidence against whether the label was right, on tickets you already know the answer to, before you ship either number.

Noul has one number

A Noul is already a probability that the statement is true. Branch on noul directly. Near 0.5 is the band you send to review. Phrase the statement so that a high value means the action you think it means. A question where "yes" means "do not escalate" is the failure mode in Limitations.

What the gate must do when the call fails

Confidence only exists on a successful response. A timeout, a 429, or a schema error needs its own branch. The public gates we reviewed fail closed: pi-jev-auto-mode blocks when the engine is missing or the body is malformed. Copy that for anything that deletes, pays, or sends.

Where else this shows up

Next: Choice or Composite scoring.

FAQ

Is confidence the same as the winning probability?

No. On Choice, confidence summarizes how peaked the distribution is. The winning option's probability is a different field. A 0.40 option can be the winner in a flat four-way split and still be a bad automatic action.

What field do I threshold on a Noul?

The noul value itself. Official Noul responses do not include a separate confidence field.

Sources

  1. ConfidenceTypeSafe · accessed 2026-09-30 · documentation
  2. Confidence-gated routingTypeSafe · accessed 2026-09-30 · documentation
  3. ChoiceTypeSafe · accessed 2026-09-20 · documentation