Microsoft conceptsDesigning and Implementing Multi-Agent AI SolutionsAgent evaluation
AI-500 evaluate, optimize and monitor multi-agent solutions
Study notes for this AI-500 domain: how to test output that changes run to run, how the Foundry agent optimizer judges gains, and what to monitor.
3 min read
You run the same multi-agent test twice, get two different answers, and your exact-match check fails both times. Agent outputs are nondeterministic, so Microsoft recommends scoring rubrics or language-model-as-judge evaluations instead. Even a score that goes up can mislead: in the Foundry agent optimizer, a gain of less than 0.03 counts as noise.
01 What does the evaluate, optimize and monitor domain cover?
The domain's name gives you three jobs. Evaluating means measuring output that can change from run to run. Optimizing means improving the agent and checking that the gain is real.
Monitoring means checking quality and safety after deployment.
Three jobs in this domain and what to know for each
- EvaluateRubrics or LLM judges instead of exact-match checks.
- OptimizeRank candidates by composite score and ignore gains under 0.03.
- MonitorScheduled and continuous evaluation, plus alerts you set yourself.
Study evaluation, optimization and monitoring as three linked topics.
02 How do you evaluate a multi-agent system?
Start at the top of the system. In multi-agent systems, system evaluators apply to the main orchestrator or the final agent responsible for the task. Process evaluators look deeper: Tool Input Accuracy checks tool parameters against six strict criteria and returns Pass or Fail.
Avoid tool-focused evaluators when the conversation includes Bing Grounding or Foundry IQ, which have limited support.
Point system evaluators at the orchestrator or the final agent.
03 How does the agent optimizer decide what is better?
Once you can measure, you can improve. The optimizer generates five candidate configurations by default. It ranks them by a composite score between 0.0 and 1.0.
An improvement of less than 0.03 is noise, not a meaningful change. If every candidate scores below the baseline, deploy none, and the baseline stays active.
A score gain under 0.03 is noise, not progress.
04 What should you watch after deployment?
Testing doesn't stop at release. Scheduled evaluation runs test datasets to detect drift. Continuous evaluation checks production traffic at a sampled rate.
On the Agent Monitoring Dashboard, a run success rate below 95% warrants a look at failed runs. Latency above 10 seconds might point to throttling, complex tool calls or network issues.
Azure Service Health doesn't detect workload-specific regressions such as a gradual rise in errors, so set Azure Monitor metric alerts too.
Set your own metric alerts, because Service Health misses workload regressions.
Summary
- Use rubrics or LLM judges, not exact-match checks.
- Apply system evaluators to the orchestrator or final agent.
- Treat optimizer gains under 0.03 as noise.
- Investigate a run success rate below 95%.
- Service Health misses workload-specific regressions.
Sources
- AI Agent Orchestration Patterns - Azure Architecture Center | Microsoft Learn (opens in a new tab)
- Agent optimizer in Foundry Agent Service overview - Microsoft Foundry | Microsoft Learn (opens in a new tab)
- Observability in Generative AI - Microsoft Foundry | Microsoft Learn (opens in a new tab)
- Agent Evaluators for Generative AI - Microsoft Foundry | Microsoft Learn (opens in a new tab)
- Optimize agent instructions, skills, tools, and models in Foundry Agent Service - Microsoft Foundry | Microsoft Learn (opens in a new tab)
- Monitor agents with the Agent Monitoring Dashboard - Microsoft Foundry | Microsoft Learn (opens in a new tab)
- Stay informed about service health regressions - Microsoft Foundry | Microsoft Learn (opens in a new tab)