Create and run an OpenAI Evals API evaluation with a custom grader

domain: platform.openai.com · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Authenticate with your OpenAI API key and confirm your organization has access to the Evals API
  2. Define a data_source_config object that specifies the schema of your test data (fields for prompt and expected output)
  3. Define a testing_criteria array specifying one or more grader objects, such as a model-graded criterion with a scoring rubric
  4. POST to the /v1/evals endpoint to create the eval configuration and capture the returned eval_id
  5. POST to /v1/evals/{eval_id}/runs to launch a run against your data source, passing the run configuration
  6. Poll the run status and retrieve per-sample results once the run reaches a terminal state

Known gotchas

Related routes

Call the OpenAI API with proper retry and streaming handling
openai.com · 4 steps · unrated
Run evals with LangSmith
docs.langchain.com · 6 steps · unrated
Create a grade item and post a student's score via the Brightspace Valence Grades API
education · 5 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans