Get an output item of an eval run

GEThttps:/api.openai.com/v1/evals/{eval_id}/runs/{run_id}/output_items/{output_item_id}

Get an evaluation run output item by ID.

Path parameters

  • eval_id
    string
    Required
    The ID of the evaluation to retrieve runs for.
  • run_id
    string
    Required
    The ID of the run to retrieve.
  • output_item_id
    string
    Required
    The ID of the output item to retrieve.

Response

The EvalRunOutputItem object matching the specified ID.

Example request
1
curl https://api.openai.com/v1/evals/eval_67abd54d9b0081909a86353f6fb9317a/runs/evalrun_67abd54d60ec8190832b46859da808f7/output_items/outputitem_67abd55eb6548190bb580745d5644a33 \
2
-H "Authorization: Bearer $OPENAI_API_KEY" \
3
-H "Content-Type: application/json"
Example response
1
{
2
"object": "eval.run.output_item",
3
"id": "outputitem_67e5796c28e081909917bf79f6e6214d",
4
"created_at": 1743092076,
5
"run_id": "evalrun_67abd54d60ec8190832b46859da808f7",
6
"eval_id": "eval_67abd54d9b0081909a86353f6fb9317a",
7
"status": "pass",
8
"datasource_item_id": 5,
9
"datasource_item": {
10
"input": "Stock Markets Rally After Positive Economic Data Released",
11
"ground_truth": "Markets"
12
},
13
"results": [
14
{
15
"name": "String check-a2486074-d803-4445-b431-ad2262e85d47",
16
"sample": null,
17
"passed": true,
18
"score": 1.0
19
}
20
],
21
"sample": {
22
"input": [
23
{
24
"role": "developer",
25
"content": "Categorize a given news headline into one of the following topics: Technology, Markets, World, Business, or Sports.\n\n# Steps\n\n1. Analyze the content of the news headline to understand its primary focus.\n2. Extract the subject matter, identifying any key indicators or keywords.\n3. Use the identified indicators to determine the most suitable category out of the five options: Technology, Markets, World, Business, or Sports.\n4. Ensure only one category is selected per headline.\n\n# Output Format\n\nRespond with the chosen category as a single word. For instance: \"Technology\", \"Markets\", \"World\", \"Business\", or \"Sports\".\n\n# Examples\n\n**Input**: \"Apple Unveils New iPhone Model, Featuring Advanced AI Features\" \n**Output**: \"Technology\"\n\n**Input**: \"Global Stocks Mixed as Investors Await Central Bank Decisions\" \n**Output**: \"Markets\"\n\n**Input**: \"War in Ukraine: Latest Updates on Negotiation Status\" \n**Output**: \"World\"\n\n**Input**: \"Microsoft in Talks to Acquire Gaming Company for $2 Billion\" \n**Output**: \"Business\"\n\n**Input**: \"Manchester United Secures Win in Premier League Football Match\" \n**Output**: \"Sports\" \n\n# Notes\n\n- If the headline appears to fit into more than one category, choose the most dominant theme.\n- Keywords or phrases such as \"stocks\", \"company acquisition\", \"match\", or technological brands can be good indicators for classification.\n",
26
"tool_call_id": null,
27
"tool_calls": null,
28
"function_call": null
29
},
30
{
31
"role": "user",
32
"content": "Stock Markets Rally After Positive Economic Data Released",
33
"tool_call_id": null,
34
"tool_calls": null,
35
"function_call": null
36
}
37
],
38
"output": [
39
{
40
"role": "assistant",
41
"content": "Markets",
42
"tool_call_id": null,
43
"tool_calls": null,
44
"function_call": null
45
}
46
],
47
"finish_reason": "stop",
48
"model": "gpt-4o-mini-2024-07-18",
49
"usage": {
50
"total_tokens": 325,
51
"completion_tokens": 2,
52
"prompt_tokens": 323,
53
"cached_tokens": 0
54
},
55
"error": null,
56
"temperature": 1.0,
57
"max_completion_tokens": 2048,
58
"top_p": 1.0,
59
"seed": 42
60
}
61
}
Built with