Agentic AI · Advanced level

Advanced level · Module 5: Orchestrator-Worker Architecture · Lesson 3 of 3

Evaluator-Optimizer Loops and Orchestrator Control

Learners add an evaluator that critiques drafts against criteria for limited revision rounds, and set controls so the orchestrator cannot plan without limit.

In this lesson you will

  • Implement an evaluator-optimizer loop
  • Limit and monitor orchestrator behaviour

Key concepts

evaluator agentcriteriarevision roundsplan size limitsorchestrator budget

The lesson

An evaluator agent scores a draft against explicit criteria (supported claims, correct figures, required sections) and returns specific feedback; the drafting agent revises. Research on self-reflection, such as Reflexion, shows that feedback loops can improve results.

Limit revision rounds (for example two) and stop early if scores stop improving. Evaluators make mistakes too, so their criteria must be concrete and tested.

Control the orchestrator with limits on plan size, re-planning attempts, total calls and cost, and log every plan for review.

Step by step

  1. Write evaluator criteria and an output schema for scores and feedback.
  2. Implement up to two revision rounds.
  3. Measure quality and cost with and without the loop.
  4. Add orchestrator limits and test them.

Practice activity

Add a limited evaluator-optimizer loop and orchestrator controls to the capstone.

Expected result: Measured quality gains within limits and an orchestrator that cannot run away.

Check your understanding

  1. Why limit revision rounds?

    Show answer

    To control cost and stop when improvements end.

  2. Name two limits for an orchestrator.

    Show answer

    For example maximum plan size, re-planning attempts, total calls or cost.

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.