Skill 4.1.4

Set up automated evaluation workflows by using built-in and custom evaluation metrics

Key Concepts

Built-in evaluators cover common quality, safety and agent metrics. Custom evaluators measure what is specific to the application: code-based evaluators run a function, such as checking that JSON matches a schema or that a cited document ID exists, and prompt-based evaluators use a judge prompt with a rubric, such as whether an answer follows the company's refund policy. Custom evaluators return a score and can have a pass threshold like the built-in ones.

Automation runs evaluations as batch evaluations from the SDK or a GitHub Actions workflow on pull requests, failing the workflow below thresholds; as scheduled evaluations that rerun a dataset regularly to catch model or data changes; and as continuous evaluation that samples live agent responses, with a limit on runs per hour. Results are stored in the Foundry project so that runs can be compared over time.