evaluate
Ask a typed model boolean, choice, or score questions about a given state, returning probabilities, selected options, or ordered-level positions in one request.
Instructions
Ask a typed evaluation model (TypeSafe Jev) questions about some state.
Jev never writes text. It returns P(yes) for boolean questions, a chosen option plus probabilities for choice questions, and a position on ordered levels for score questions. Several questions run in one request. Billed through Vercel AI Gateway (input tokens only); needs the vercel key.
Question shapes (criteria describe options or levels): {"refunded": {"type": "boolean", "instructions": "Was a refund issued?"}} {"tone": {"type": "choice", "instructions": "Tone?", "criteria": {"calm": "...", "angry": "..."}}} {"clarity": {"type": "score", "instructions": "How clear?", "criteria": ["unclear", "partly", "clear"]}}
A probability near 0.5 means uncertain, not medium. Option wording, labels and order move the result, so vary them in calibration work.
Args: state: Text, JSON object or array to evaluate. questions: Map of question name to question object (see shapes above). model_id: Gateway evaluation model id (default typesafe-ai/jev).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"state": "<state>",
"questions": "<questions>"
},
"name": "evaluate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| state | Yes | ||
| model_id | No | typesafe-ai/jev | |
| questions | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |