curl --request GET \
--url https://api.openai.com/v1/evals/{eval_id}/runs/{run_id}/output_items \
--header 'Authorization: Bearer <token>'{
"object": "list",
"data": [
{
"object": "eval.run.output_item",
"id": "<string>",
"run_id": "<string>",
"eval_id": "<string>",
"created_at": 123,
"status": "<string>",
"datasource_item_id": 123,
"datasource_item": {},
"results": [
{}
],
"sample": {
"input": [
{
"role": "<string>",
"content": "<string>"
}
],
"output": [
{
"role": "<string>",
"content": "<string>"
}
],
"finish_reason": "<string>",
"model": "<string>",
"usage": {
"total_tokens": 123,
"completion_tokens": 123,
"prompt_tokens": 123,
"cached_tokens": 123
},
"error": {
"code": "<string>",
"message": "<string>"
},
"temperature": 123,
"max_completion_tokens": 123,
"top_p": 123,
"seed": 123
}
}
],
"first_id": "<string>",
"last_id": "<string>",
"has_more": true
}Get a list of output items for an evaluation run.
curl --request GET \
--url https://api.openai.com/v1/evals/{eval_id}/runs/{run_id}/output_items \
--header 'Authorization: Bearer <token>'{
"object": "list",
"data": [
{
"object": "eval.run.output_item",
"id": "<string>",
"run_id": "<string>",
"eval_id": "<string>",
"created_at": 123,
"status": "<string>",
"datasource_item_id": 123,
"datasource_item": {},
"results": [
{}
],
"sample": {
"input": [
{
"role": "<string>",
"content": "<string>"
}
],
"output": [
{
"role": "<string>",
"content": "<string>"
}
],
"finish_reason": "<string>",
"model": "<string>",
"usage": {
"total_tokens": 123,
"completion_tokens": 123,
"prompt_tokens": 123,
"cached_tokens": 123
},
"error": {
"code": "<string>",
"message": "<string>"
},
"temperature": 123,
"max_completion_tokens": 123,
"top_p": 123,
"seed": 123
}
}
],
"first_id": "<string>",
"last_id": "<string>",
"has_more": true
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The ID of the evaluation to retrieve runs for.
The ID of the run to retrieve output items for.
Identifier for the last output item from the previous pagination request.
Number of output items to retrieve.
Filter output items by status. Use failed to filter by failed output
items or pass to filter by passed output items.
fail, pass Sort order for output items by timestamp. Use asc for ascending order or desc for descending order. Defaults to asc.
asc, desc A list of output items for the evaluation run
An object representing a list of output items for an evaluation run.
The type of this object. It is always set to "list".
list An array of eval run output item objects.
Show child attributes
The identifier of the first eval run output item in the data array.
The identifier of the last eval run output item in the data array.
Indicates whether there are more eval run output items available.
Was this page helpful?