Hanzo
OpenapiEval

Is the score events your org has recorded, narrowed by any of name, runName and…

Is the score events your org has recorded, narrowed by any of name, runName and traceId.

GET /v1/eval/scores

Addresshttps://api.hanzo.ai/v1/eval/scores
MethodGET
Operationget_eval_scores
AuthAuthorization: Bearer $HANZO_API_KEY

Is the score events your org has recorded, narrowed by any of name, runName and traceId.

The org is bound as an authoritative predicate on the query, never taken from a header, so a filter can narrow the caller's own scores but can never widen past them. Requires a validated principal; 403 without one. Scores live in the datastore, so a deployment with none wired answers 503 rather than an empty page that would read as "no scores".

Request

4 fields.

FieldInTypeRequiredDescription
namequerystringName narrows to one score name.
runNamequerystringRunName narrows to the scores of one run.
traceIdquerystringTraceID narrows to the scores on one model call.
limitqueryinteger

Response

StatusBodyMeaning
200scoreListok

200 body — 10 fields.

FieldInTypeAlwaysDescription
databodyscoreView[]Data is the caller org's score events matching the filters, bounded by limit.
data[].commentbodystringComment is the grader's reasoning, truncated at 2000 characters.
data[].dataTypebodystringDataType is NUMERIC, CATEGORICAL or BOOLEAN.
data[].idbodystringID is the score event's handle.
data[].namebodystringName is the score name, which a rubric of the same name governs.
data[].runNamebodystringRunName is the run this score was recorded under, when it came from one.
data[].stringValuebodystringStringValue is the label of a CATEGORICAL score.
data[].timestampbodystringTimestamp is when the score was recorded.
data[].traceIdbodystringTraceID is the model call this score grades, when it grades one.
data[].valuebodynumberValue is the numeric score; for BOOLEAN it is 0 or 1.

Failure carries the platform error shape — see Errors.

Examples

hanzo evals scores get

Eval API · All Hanzo APIs · Interactive reference

How is this guide?

On this page