evaluate answers named Choice, Score, and Boolean questions about shared state. It returns typed values and probabilities for routing, scoring, guardrails, and verification. Omit account to use the platform Vercel AI Gateway credential and the default typesafe-ai/jev model.
Jev makes bounded decisions; it doesn’t generate text. Use generate when you need a written or schema-generated response.
Example
automations/triage-message.automation.ts
"billing" | "support". The Boolean answer’s probability is the model-estimated probability that the answer is true.
Inputs
Each question requires
instructions, which can be a string, JSON object, or JSON array:
choicerequires a nonemptycriteriamap. Each key is an available answer and each value describes that option.scorerequires at least two orderedcriterialevels. The first level has index0.booleancan describetrueandfalsewith optionalcriteria.
null.
Output
answers contains one answer for every question:
Choice and Score probability distributions are optional because language-model adapters may return only a selected choice or score. Jev returns native distributions and adds its separate confidence statistic under
providerMetadata.typesafe.confidence. Don’t treat Boolean probability or Jev confidence as interchangeable values. Choose automation thresholds against labeled examples from your task.
The result also exposes token usage, warnings, optional rounding precision, provider metadata, and response metadata.
Provider accounts
Customer-managed Vercel AI Gateway, OpenAI, Anthropic, and Google Generative AI accounts supportevaluate. OpenAI, Anthropic, and Google adapt structured language-model output to the same question types; their Boolean probabilities are prompted estimates and aren’t guaranteed to be calibrated.
Omitting model uses the selected account’s default:
Connect customer-managed credentials with
bunx automate.ax accounts, then pass the provider’s named account reference. Calls that omit account count toward the organization’s monthly Platform AI allowance.