Vercel AI CLI
A terminal tool exposes typed Boolean, Choice and Score evaluations with Jev as the default evaluation model.
A terminal tool exposes typed Boolean, Choice and Score evaluations with Jev as the default evaluation model.
The `ai evaluate` command reads text or JSON state from stdin and accepts named Boolean, Choice, or Score questions through flags or a JSON file. Jev is the default evaluation model; the CLI returns typed answers and evaluation metadata as JSON.
Which team?
Text/JSON supplied on stdin; the example evaluation asks whether a refund is requested, which team should handle it, and how positive the tone is.
How positive?
Text/JSON supplied on stdin; the example evaluation asks whether a refund is requested, which team should handle it, and how positive the tone is.
Provide one or more typed questions with CLI flags or a JSON question file.
Send text or structured JSON on stdin; the command parses it without flattening arrays.
The CLI resolves the selected evaluation model, defaulting to Jev, and sends the state and questions through AI Gateway.
The command prints the returned answers and evaluation metadata for downstream shell or application logic.
It makes typed judgments usable from shell pipelines and scripts while leaving the question definitions and downstream interpretation under the caller's control.