Get eval run output items
GET/evals/{eval_id}/runs/{run_id}/output_items
Get a list of output items for an evaluation run.
Path Parameters
eval_id: string
run_id: string
Query Parameters
after: optional string
Identifier for the last output item from the previous pagination request.
limit: optional number
Number of output items to retrieve.
Returns
first_id: string
The identifier of the first eval run output item in the data array.
has_more: boolean
Indicates whether there are more eval run output items available.
last_id: string
The identifier of the last eval run output item in the data array.
object: "list"
The type of this object. It is always set to "list".
Get eval run output items
curl https://api.openai.com/v1/evals/$EVAL_ID/runs/$RUN_ID/output_items \
-H "Authorization: Bearer $OPENAI_API_KEY"{
"data": [
{
"id": "id",
"created_at": 0,
"datasource_item": {
"foo": "bar"
},
"datasource_item_id": 0,
"eval_id": "eval_id",
"object": "eval.run.output_item",
"results": [
{
"name": "name",
"passed": true,
"score": 0,
"sample": {
"foo": "bar"
},
"type": "type"
}
],
"run_id": "run_id",
"sample": {
"error": {
"code": "code",
"message": "message"
},
"finish_reason": "finish_reason",
"input": [
{
"content": "content",
"role": "role"
}
],
"max_completion_tokens": 0,
"model": "model",
"output": [
{
"content": "content",
"role": "role"
}
],
"seed": 0,
"temperature": 0,
"top_p": 0,
"usage": {
"cached_tokens": 0,
"completion_tokens": 0,
"prompt_tokens": 0,
"total_tokens": 0
}
},
"status": "status"
}
],
"first_id": "first_id",
"has_more": true,
"last_id": "last_id",
"object": "list"
}Returns Examples
{
"data": [
{
"id": "id",
"created_at": 0,
"datasource_item": {
"foo": "bar"
},
"datasource_item_id": 0,
"eval_id": "eval_id",
"object": "eval.run.output_item",
"results": [
{
"name": "name",
"passed": true,
"score": 0,
"sample": {
"foo": "bar"
},
"type": "type"
}
],
"run_id": "run_id",
"sample": {
"error": {
"code": "code",
"message": "message"
},
"finish_reason": "finish_reason",
"input": [
{
"content": "content",
"role": "role"
}
],
"max_completion_tokens": 0,
"model": "model",
"output": [
{
"content": "content",
"role": "role"
}
],
"seed": 0,
"temperature": 0,
"top_p": 0,
"usage": {
"cached_tokens": 0,
"completion_tokens": 0,
"prompt_tokens": 0,
"total_tokens": 0
}
},
"status": "status"
}
],
"first_id": "first_id",
"has_more": true,
"last_id": "last_id",
"object": "list"
}