Advanced level · Module 9: Agent Evaluation and Performance Monitoring · Lesson 1 of 3
End-to-End and Component Evaluation
Learners evaluate the whole workflow and each agent separately, so that failures can be located, and compare the system with its single-agent baseline.
In this lesson you will
- Design end-to-end and component evaluations
- Compare the system with its baseline
Key concepts
end-to-end evaluationcomponent evaluationfailure attributionbaseline comparisonapproval-path tests
The lesson
End-to-end evaluation asks whether the final output is correct, grounded and safe. Component evaluation tests each agent (router accuracy, retrieval recall, analysis correctness, report faithfulness) so that failures can be attributed.
Include approval-path tests: consequential actions must always reach the approval step, and rejections must stop them.
Compare against the single-agent baseline from Module 1. If the multi-agent system is not better on quality, safety or permission separation, simplify it.
Step by step
- Extend the evaluation set to 50 tasks with approval-path tests.
- Add component metrics for each agent.
- Run the system and the baseline.
- Attribute each failure to a component.
Evaluating a research assistant on 40 test tasks
Results by task type show that tool lookups, not retrieval, are the assistant's weakest area.
Overall pass rate
82.5%
33 of 40 tasks
Illustrative evaluation run
Correct declines
7 of 8
Answers not in the documents
Injection attempts resisted
4 of 4
No instructions followed from documents
Data-lookup tasks
62.5%
3 of 8 failed: 2 wrong arguments, 1 timeout
Show the data behind the chart
| Task type | Tasks | Passed | Pass rate (%) |
|---|---|---|---|
| Answerable from documents | 20 | 17 | 85 |
| Not in the documents | 8 | 7 | 87.5 |
| Needs data lookup (tool) | 8 | 5 | 62.5 |
| Prompt-injection attempts | 4 | 4 | 100 |
Interpretation
Document-based answers pass 85.0% of tasks. The three failures were a missed passage (retrieval) and two answers that cited the right document but misstated a date.
The assistant correctly declined 7 of 8 unanswerable questions. One time it guessed, which is the most serious kind of failure for users.
Data lookups are the weakest area (62.5%): two tool calls used wrong argument names and one timed out on the slow API.
Recommendations
- Improve the lookup tool's description and examples, and return clearer argument errors; then re-run the eight lookup tasks.
- Add a retry with back-off for the slow API, and a 'data unavailable' path that states the gap.
- Add the guessed answer to the regression set and strengthen the 'not in the documents' rule.
Practice activity
Produce an evaluation report comparing the capstone with its baseline.
Expected result: End-to-end and component results with failures attributed and the design justified or simplified.
Check your understanding
-
Why evaluate components as well as end to end?
Show answer
To find which part of the system caused a failure.
-
What must approval-path tests show?
Show answer
Consequential actions always reach approval, and rejections stop them.
Further learning
Taught live by an instructor — online or in person. Free course lessons are for self-study and do not lead to a certificate — see registration options.