Skip to main content

run_output_items

Creates, updates, deletes, gets or lists a run_output_items resource.

Overview

Namerun_output_items
TypeResource
Idopenai.evals.run_output_items

Fields

The following fields are returned by SELECT queries:

The evaluation run output item

NameDatatypeDescription
idstringUnique identifier for the evaluation run output item.
datasource_item_idintegerThe identifier for the data source item.
eval_idstringThe identifier of the evaluation group.
run_idstringThe identifier of the evaluation run associated with this output item.
created_atinteger (unixtime)Unix timestamp (in seconds) when the evaluation run was created.
datasource_itemobjectDetails of the input data source item.
objectstringThe type of the object. Always "eval.run.output_item". (eval.run.output_item) (default: eval.run.output_item)
resultsarrayA list of grader results for this output item.
sampleobjectA sample containing the input and output of the evaluation run.
statusstringThe status of the evaluation run.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselecteval_id, run_id, output_item_idopenai-organization, openai-project
listselecteval_id, run_idafter, limit, status, order, openai-organization, openai-project

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
eval_idstringThe ID of the evaluation to retrieve runs for.
output_item_idstringThe ID of the output item to retrieve.
run_idstringThe ID of the run to retrieve output items for.
afterstringIdentifier for the last output item from the previous pagination request.
limitintegerNumber of output items to retrieve. Automatically applied from a SQL LIMIT clause - SELECT ... LIMIT 10 sends limit=10 on the wire. Setting it explicitly in a WHERE clause is not required.
openai-organizationstringOptionally scope the request to a specific organization (overrides the default associated with the API key). Addressable in SQL as openai_organization.
openai-projectstringOptionally scope the request to a specific project (overrides the default associated with the API key). Addressable in SQL as openai_project.
orderstringSort order for output items by timestamp. Use asc for ascending order or desc for descending order. Defaults to asc.
statusstringFilter output items by status. Use failed to filter by failed output items or pass to filter by passed output items.

SELECT examples

The evaluation run output item

SELECT
id,
datasource_item_id,
eval_id,
run_id,
created_at,
datasource_item,
object,
results,
sample,
status
FROM openai.evals.run_output_items
WHERE eval_id = '{{ eval_id }}' -- required
AND run_id = '{{ run_id }}' -- required
AND output_item_id = '{{ output_item_id }}' -- required
AND "openai-organization" = '{{ openai-organization }}'
AND "openai-project" = '{{ openai-project }}'
;