agents/apiTHE ENCYCLOPEDIA
Production

Agent evaluations & regression testing

Measure task outcomes, tool behavior, safety, and cost before changing an agent workflow.

Task dataset
Run candidate
Inspect trace
Grade outcomes
Compare baseline

Start with a measurable outcome

For a support agent, success might require the correct order, an authorized lookup, a supported answer, and no unauthorized refund. A fluent final answer is insufficient. Define deterministic checks for IDs and required fields, plus a rubric for answer quality. This is an application evaluation design, not an automatic guarantee supplied by the runtime.

Debug behavior before scaling tests

OpenAI's workflow evaluation guidance starts with traces to inspect model calls, tools, guardrails, and handoffs. Its trace-grading walkthrough describes SDK apps and existing Builder workflows. Do not assume that every managed Agents API event is automatically the same trace-grading resource; use the observability path documented for your runtime.

Build a representative dataset

Include normal tasks, missing information, ambiguous requests, tool errors, and adversarial content. Remove sensitive customer data or use authorized test fixtures. Keep a held-out set to avoid optimizing only for examples used while editing prompts. Record the configuration and tool versions for each run.

Combine checks with human judgment

Use exact checks for forbidden actions and required outputs, and rubric-based grading for less structured answers. Review disagreements between graders and people. Measure completion, unsafe actions, latency, and cost separately; an average score can hide a critical safety regression.

Gate changes on evidence

Run baseline and candidate configurations against the same cases. Investigate regressions before broad rollout and retain representative failure traces. Repeat trials where model variation matters. Use datasets and eval runs for repeatability rather than relying on one convincing demo.

Read the official reference

Check the source for current API fields, account requirements, and service limits.

OpenAI: agent-evals

38 matching topics

What is the OpenAI Agents API?FoundationsAgents API vs Agents SDK vs Responses APIComparisonsAgents API quickstartGetting startedSessions, turns & durable stateCore conceptsHosted vs self-hosted sandboxesInfrastructureConnect MCP servers to Agents APITools & integrationsFunction calling & application toolsTools & integrationsMulti-agent orchestrationCore conceptsStreaming, webhooks & event handlingIntegration guidesFiles, outputs & published artifactsCore conceptsVaults & MCP authenticationTools & integrationsAgent security & credential boundariesProductionTracing, usage & debuggingProductionAgents API pricing & cost planningProductionOpenAI Agents API with PythonGetting startedAgents API with TypeScript & Next.jsIntegration guidesWhat is the OpenAI Agents SDK?FoundationsResponses API in the agent stackFoundationsAgent Skills & SKILL.mdTools & integrationsProgrammatic Tool CallingTools & integrationsRAG, file search & vector storesTools & integrationsWeb search & source citationsTools & integrationsChatKit & Agent BuilderIntegration guidesAgent configuration & reusable definitionsCore conceptsPlugins: connect skills and MCP toolsTools & integrationsSandbox lifecycle & executor connectionsInfrastructureWebhook verification, queues & deduplicationIntegration guidesAgent retries, timeouts & failure recoveryProductionAgent evaluations & regression testingProductionWhich parts of the agent stack do you need?FoundationsAgents API contract quick referenceIntegration guidesOrder agent reference: approval, recovery & evaluationIntegration guidesBuild a Next.js order agent: server, tools & streamingIntegration guidesPython Agents API example with a real tool loopGetting startedHuman approval & prompt injection defensesProductionAgents API troubleshooting: symptoms, checks & recoveryProductionAgent tool support & runtime ownership matrixComparisonsAgent resources, relationships & task stateCore concepts
K to open Esc to close