Hanzo
OpenapiEval

Is the examples in one of your datasets — the set is named in the path, because…

Is the examples in one of your datasets — the set is named in the path, because this collection only exists inside one.

GET /v1/eval/datasets/{name}/items

Addresshttps://api.hanzo.ai/v1/eval/datasets/{name}/items
MethodGET
Operationget_eval_datasets_by_name_items
AuthAuthorization: Bearer $HANZO_API_KEY

Is the examples in one of your datasets — the set is named in the path, because this collection only exists inside one.

Archived examples are included, so the caller sees the whole set rather than only what a run would use. Requires a validated principal; 403 without one, and the read is filtered on the validated org, so naming another tenant's dataset returns nothing rather than its contents.

Request

2 fields.

FieldInTypeRequiredDescription
namepathstringyesDataset is the set to read, from the path — this collection only exists inside one.
limitqueryinteger

Response

StatusBodyMeaning
200itemListok

200 body — 10 fields.

FieldInTypeAlwaysDescription
databodyitemView[]Data is the examples of the one dataset named in the path, archived ones included, so the caller sees the whole set rather than what a run would use.
data[].createdAtbodystringCreatedAt is when the example was first written.
data[].datasetNamebodystringDataset is the set this example belongs to.
data[].expectedOutputbodyobjectExpected is the answer a correct model produces, which the judge grades against.
data[].idbodystringID is the example's handle, unique within the caller's org.
data[].inputbodyobjectInput is what the model under test is given, as it was written.
data[].metadatabodyobjectMetadata is the free-form object stored with the example.
data[].metadata.*bodyobject
data[].statusbodystringStatus is ACTIVE or ARCHIVED.
data[].updatedAtbodystringUpdatedAt is when it last changed.

Failure carries the platform error shape — see Errors.

Examples

hanzo evals datasets items get <name>

Eval API · All Hanzo APIs · Interactive reference

How is this guide?

On this page