章节导航
Run a typed evaluation
Jev 会根据具名问题评估 JSON 状态,并返回 boolean、choice 或 score 类型的答案。使用 Bearer 身份验证调用 POST /v1/evaluations;模型的 context window 为 32K tokens。通过 /v1/models?output_modalities=decisions 或 /v1/models?output_modalities=all 查询 Jev;默认的纯文本模型列表不会列出仅输出 decisions 的模型。Jev 只能通过 evaluations endpoint 使用;聊天格式的 endpoint 会返回 HTTP 400。当前目录单价:每 1M 输入 tokens $0.042,每 1M 输出 tokens $0。账户需要有足够的 credits。
/v1/evaluations验证
Authorization必填在 Authorization 标头以 Bearer token 传入 API 密钥。
Body
modelThe optional evaluation model in the request body. Omit it to use the default typesafe-ai/jev; any other value is rejected as model_not_available.
"typesafe-ai/jev"state必填The state or evidence to evaluate. It may be a string, object, or array.
"The support agent issued a full refund."questions必填One or more named questions evaluated in parallel.
type必填The typed answer requested for this question.
instructions必填Instructions describing what this question should decide.
criteriaRequired for choice questions as an option-to-description record; required for score questions as an ordered array of at least two criteria; optional for boolean questions.