Agentic AI · Advanced level

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

Planning and Delegation

Learners build an orchestrator that turns a request into a validated list of sub-tasks, each assigned to a permitted worker type with its inputs.

In this lesson you will

  • Generate validated task plans
  • Delegate sub-tasks to permitted workers

Key concepts

orchestratortask plan schemaworker typedelegation contractplan validation

The lesson

In the orchestrator-worker pattern, a coordinating agent breaks a request into sub-tasks at run time and delegates each to a worker. It suits tasks whose steps cannot be fixed in advance, such as research questions that need different searches and analyses.

The plan is structured output: a list of sub-tasks with worker type, inputs and expected output. Validate it: only known worker types, a maximum number of sub-tasks, and no worker that the request's user is not permitted to use.

Keeping planning separate from execution lets a person review the plan for important requests.

Step by step

  1. Define the TaskPlan and SubTask schemas.
  2. Prompt the orchestrator to produce a plan for five research requests.
  3. Validate plans against allowed workers and limits.
  4. Dispatch sub-tasks to workers and collect results.

Practice activity

Implement the capstone orchestrator's planning and delegation.

Expected result: Validated plans that only use permitted workers within limits.

Check your understanding

  1. When is the orchestrator-worker pattern useful?

    Show answer

    When the steps of a task cannot be fixed in advance.

  2. What should plan validation check?

    Show answer

    Known worker types, a maximum number of sub-tasks and permissions.

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.