Hanzo
OpenapiEval

Saves a reusable judge for the caller's org — the judge model and the written…

Saves a reusable judge for the caller's org — the judge model and the written criteria it grades against — and answers 201 with it.

POST /v1/eval/evaluators

Addresshttps://api.hanzo.ai/v1/eval/evaluators
MethodPOST
Operationpost_eval_evaluators
AuthAuthorization: Bearer $HANZO_API_KEY

Saves a reusable judge for the caller's org — the judge model and the written criteria it grades against — and answers 201 with it.

Like a dataset, the NAME is the key: re-posting a name edits that judge rather than adding a second one. Requires a validated principal; 403 without one.

Request

4 fields, body application/json (required).

FieldInTypeRequiredDescription
criteriabodystringCriteria is the written standard the judge applies; over 64 KiB is refused.
modelbodystringModel is the model that will do the grading.
namebodystringyesName is the judge's org-unique handle, matching ^[A-Za-z0-9][A-Za-z0-9._-]{0,63}$.
scoreNamebodystringScoreName is the name the resulting scores are filed under.

Response

StatusBodyMeaning
201evaluatorViewcreated

201 body — 6 fields.

FieldInTypeAlwaysDescription
createdAtbodystringCreatedAt is when the judge was first defined.
criteriabodystringCriteria is the written standard the judge applies.
modelbodystringModel is the model that does the grading.
namebodystringName is the judge's org-unique handle.
scoreNamebodystringScoreName is the name the resulting scores are filed under.
updatedAtbodystringUpdatedAt is when it last changed.

Failure carries the platform error shape — see Errors.

Examples

hanzo evals evaluators create --name <name>

Eval API · All Hanzo APIs · Interactive reference

How is this guide?

On this page