Hanzo
OpenapiEval

Is the traces behind your evaluations — one per model call an evaluation made,…

Is the traces behind your evaluations — one per model call an evaluation made, carrying its input, output, model and timing — narrowed by any of…

GET /v1/eval/traces

Addresshttps://api.hanzo.ai/v1/eval/traces
MethodGET
Operationget_eval_traces
AuthAuthorization: Bearer $HANZO_API_KEY

Is the traces behind your evaluations — one per model call an evaluation made, carrying its input, output, model and timing — narrowed by any of sessionId, runName and datasetName.

Scoped by org AND by project: the project is the caller's server-minted scope, not a parameter, so it cannot be widened by asking. Requires a validated principal; 403 without one. Traces live in the datastore, so a deployment with none wired answers 503 rather than an empty page.

Request

4 fields.

FieldInTypeRequiredDescription
sessionIdquerystringSessionID narrows to one session, which for an evaluation is one run.
runNamequerystringRunName narrows to the calls one run made.
datasetNamequerystringDataset narrows to the calls made against one dataset.
limitqueryinteger

Response

StatusBodyMeaning
200traceListok

200 body — 16 fields.

FieldInTypeAlwaysDescription
databodytraceView[]Data is the caller org's traces matching the filters, bounded by limit.
data[].apiKeyHashbodystringAPIKeyHash is the non-reversible credential ref (never a plaintext key), so a trace correlates to the key that drove it without the store holding a secret.
data[].datasetItemIdbodystringItemID is the example the call answered.
data[].datasetNamebodystringDataset is the set the graded example came from.
data[].endTimebodystringEndTime is when it returned.
data[].idbodystringID is the trace's handle, the value a score points at.
data[].inputbodyobjectInput is what the model was given.
data[].latencyMsbodynumberLatencyMs is EndTime-StartTime in milliseconds, nil when the trace carries no timing (so the console renders "—", never a fabricated 0).
data[].modelbodystringModel is the model that answered.
data[].namebodystringName is the trace's label, "eval:<run>" for a call a run made.
data[].outputbodystringOutput is what it answered.
data[].projectIdbodystringProjectID is the sub-scope within the org the call was made under.
data[].runNamebodystringRunName is the run the call belongs to.
data[].sessionIdbodystringSessionID groups the calls of one run.
data[].startTimebodystringStartTime is when the call began.
data[].timestampbodystringTimestamp is the trace's own clock, equal to StartTime for a timed call.

Failure carries the platform error shape — see Errors.

Examples

hanzo evals traces

Eval API · All Hanzo APIs · Interactive reference

How is this guide?

On this page