Skip to content
For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to the page URL.
Primary navigation

Evals

Manage and run evals in the OpenAI platform.

Create eval
client.evals.create(body, options?): EvalCreateResponse { id, created_at, data_source_config, 4 more }
POST
/evals
Delete an eval
client.evals.delete(evalID, options?): EvalDeleteResponse { deleted, eval_id, object }
DELETE
/evals/{eval_id}
List evals
client.evals.list(query?, options?): CursorPage<EvalListResponse { id, created_at, data_source_config, 4 more } >
GET
/evals
Get an eval
client.evals.retrieve(evalID, options?): EvalRetrieveResponse { id, created_at, data_source_config, 4 more }
GET
/evals/{eval_id}
Update an eval
client.evals.update(evalID, body, options?): EvalUpdateResponse { id, created_at, data_source_config, 4 more }
POST
/evals/{eval_id}
Models
EvalCreateResponse { id, created_at, data_source_config, 4 more }

An Eval object with a data source config and testing criteria. An Eval represents a task to be done for your LLM integration. Like:

  • Improve the quality of my chatbot
  • See how well my chatbot handles customer support
  • Compare how different models perform on the same task
EvalCustomDataSourceConfig { schema, type }

A CustomDataSourceConfig which specifies the schema of your item and optionally sample namespaces. The response schema defines the shape of the data that will be:

  • Used to define your testing criteria and
  • What data is required when creating a run
EvalDeleteResponse { deleted, eval_id, object }
EvalListResponse { id, created_at, data_source_config, 4 more }

An Eval object with a data source config and testing criteria. An Eval represents a task to be done for your LLM integration. Like:

  • Improve the quality of my chatbot
  • See how well my chatbot handles customer support
  • Compare how different models perform on the same task
EvalRetrieveResponse { id, created_at, data_source_config, 4 more }

An Eval object with a data source config and testing criteria. An Eval represents a task to be done for your LLM integration. Like:

  • Improve the quality of my chatbot
  • See how well my chatbot handles customer support
  • Compare how different models perform on the same task
EvalStoredCompletionsDataSourceConfig { schema, type, metadata }

Deprecated in favor of LogsDataSourceConfig.

EvalUpdateResponse { id, created_at, data_source_config, 4 more }

An Eval object with a data source config and testing criteria. An Eval represents a task to be done for your LLM integration. Like:

  • Improve the quality of my chatbot
  • See how well my chatbot handles customer support
  • Compare how different models perform on the same task

EvalsRuns

Manage and run evals in the OpenAI platform.

Cancel eval run
client.evals.runs.cancel(runID, params, options?): RunCancelResponse { id, created_at, data_source, 11 more }
POST
/evals/{eval_id}/runs/{run_id}/cancel
Create eval run
client.evals.runs.create(evalID, body, options?): RunCreateResponse { id, created_at, data_source, 11 more }
POST
/evals/{eval_id}/runs
Delete eval run
client.evals.runs.delete(runID, params, options?): RunDeleteResponse { deleted, object, run_id }
DELETE
/evals/{eval_id}/runs/{run_id}
Get eval runs
client.evals.runs.list(evalID, query?, options?): CursorPage<RunListResponse { id, created_at, data_source, 11 more } >
GET
/evals/{eval_id}/runs
Get an eval run
client.evals.runs.retrieve(runID, params, options?): RunRetrieveResponse { id, created_at, data_source, 11 more }
GET
/evals/{eval_id}/runs/{run_id}
Models
CreateEvalCompletionsRunDataSource { source, type, input_messages, 2 more }

A CompletionsRunDataSource object describing a model sampling configuration.

CreateEvalJSONLRunDataSource { source, type }

A JsonlRunDataSource object with that specifies a JSONL file that matches the eval

EvalAPIError { code, message }

An object representing an error response from the Eval API.

RunCancelResponse { id, created_at, data_source, 11 more }

A schema representing an evaluation run.

RunCreateResponse { id, created_at, data_source, 11 more }

A schema representing an evaluation run.

RunDeleteResponse { deleted, object, run_id }
RunListResponse { id, created_at, data_source, 11 more }

A schema representing an evaluation run.

RunRetrieveResponse { id, created_at, data_source, 11 more }

A schema representing an evaluation run.

EvalsRunsOutput Items

Manage and run evals in the OpenAI platform.

Get eval run output items
client.evals.runs.outputItems.list(runID, params, options?): CursorPage<OutputItemListResponse { id, created_at, datasource_item, 7 more } >
GET
/evals/{eval_id}/runs/{run_id}/output_items
Get an output item of an eval run
client.evals.runs.outputItems.retrieve(outputItemID, params, options?): OutputItemRetrieveResponse { id, created_at, datasource_item, 7 more }
GET
/evals/{eval_id}/runs/{run_id}/output_items/{output_item_id}
Models
OutputItemListResponse { id, created_at, datasource_item, 7 more }

A schema representing an evaluation run output item.

OutputItemRetrieveResponse { id, created_at, datasource_item, 7 more }

A schema representing an evaluation run output item.