Items marked (preview) in this article are currently in public preview. This preview is provided without a service-level agreement, and we don’t recommend it for production workloads. Certain features might not be supported or might have constrained capabilities. For more information, see Supplemental Terms of Use for Microsoft Azure Previews.
Features
- Agent Evaluation: Automate pre-production assessment of Microsoft Foundry agents in your CI/CD workflow.
- Evaluators: Use any evaluators from the Foundry evaluator catalog.
- Statistical Analysis: Evaluation results include confidence intervals and test for statistical significance to determine if changes are meaningful and not due to random variation.
Evaluator categories
- Agent evaluators: Process and system-level evaluators for agent workflows.
- RAG evaluators: Evaluate end-to-end and retrieval processes in RAG systems.
- Risk and safety evaluators: Assess risks and safety concerns in responses.
- General purpose evaluators: Quality evaluation such as coherence and fluency.
- OpenAI-based graders: Use OpenAI graders including string check, text similarity, score/label model.
- Custom evaluators: Define your own custom evaluators using Python code or LLM-as-a-judge patterns.
Prerequisites
- A project. To learn more, see Create a project.
- A Foundry agent.
How to set up AI agent evaluations
AI agent evaluations input
Parameters
To find your agent ID and version, open your project in Foundry portal, go to Agents, select your agent, and copy the Agent ID from the details pane. The version is the deployment version number (for example,
my-agent:1).Data file
The input data file should be a JSON file with the following structure:Basic sample data file
Additional sample data files
AI agent evaluations workflow
To use the GitHub Action, add the GitHub Action to your CI/CD workflows. Specify the trigger criteria, such as on commit, and the file paths to trigger your automated workflows. This example shows how you can run AI Agent Evaluation when you compare different agents by using agent IDs.AI agent evaluations output
Evaluation results are output to the summary section for each AI Evaluation GitHub Action run under Actions in GitHub. The report shows evaluation scores for each metric, confidence intervals, and — when you evaluate multiple agents — a pairwise statistical comparison that indicates whether differences are meaningful or within random variation. The following screenshot shows a sample report comparing two agents.