evaluate( )

Pattern

Jev Confidence Router

Route a message with a Jev choice distribution, then act only when confidence and selected probability both clear their floors.

BeginnerSep 2026View the full pattern on desktop
Jev Confidence Router preview

Problems solved

  • Classify into a typed set of queues
  • Use the full choice distribution, not only the top pick
  • Send ambiguous cases to review via confidence floors

Use cases

  • Support-ticket triage
  • Form-submission routers
  • Teaching Jev choice distributions and confidence

AI SDK APIs

experimental_evaluate

Tags

jevevaluationtyped-decisionschoiceconfidenceroutingai-sdk

Requirements

Node.js
24+
Memory
256MB
Other
  • Vercel AI Gateway API key

Environment variables

External services

vercel-ai-gatewayupstash

Ready to use?

View the full interactive pattern with live preview and copy the source code.

View the pattern on desktop

Related patterns