v27

latestOpenAPI 3.1.0raw.githubusercontent.com2026-04-22216424765.0 KB
gateway.openapi_Gateway

Create Evaluator

Creates a custom evaluator for scoring model outputs. Evaluators use the Eval Protocol to define test cases, run model inference, and score responses. They are used with evaluation jobs and Reinforcement Fine-Tuning (RFT).

Source Code Requirements

Your project should contain:

  • requirements.txt - Python dependencies for your evaluator
  • test_*.py - Pytest test file(s) with @evaluation_test decorated functions
  • Any additional code/modules your evaluator needs

Workflow

Recommended: Use the ep upload CLI command to handle all these steps automatically.

If using the API directly:

  1. Call this endpoint to create the evaluator resource
  2. Package your source directory as a .tar.gz (respecting .gitignore)
  3. Call Get Evaluator Upload Endpoint to get a signed upload URL
  4. PUT the tar.gz file to the signed URL
  5. Call Validate Evaluator Upload to trigger server-side validation
  6. Poll Get Evaluator until ready

Once active, reference the evaluator in Create Evaluation Job or Create Reinforcement Fine-tuning Job.

post/v1/accounts/{account_id}/evaluatorsV2

Path parameters

account_idstring required

The Account Id

Request body

evaluatorIdstring

Response

A successful response.

namestring
displayNamestring
descriptionstring
createTimestring date-time
createdBystring
updateTimestring date-time
state'STATE_UNSPECIFIED' | 'ACTIVE' | 'BUILDING' | 'BUILD_FAILED'
requirementsstring
entryPointstring
commitHashstring
defaultDatasetstring