Agentic AI · Module 4Lesson 3

Study explanation · Lesson 03 · 13 min

Choose the shape

Five reusable patterns cover almost every workflow: chaining, routing, parallelization, orchestrator and workers, and evaluator and optimizer. The skill is not knowing all five, but picking the smallest one that fits.

Listen to this lesson

Hear the lesson read aloud, with each sentence highlighted as you go.

Narrated by an AI voice.

Arrange the steps on purpose

Once you can see the four moments, you can arrange the steps deliberately instead of by habit. The notes offer five reusable shapes, each with an example from the same finance task.

The five shapes · Lecture notes pp. 3-4
PatternWhat it doesFinance example
ChainingAn ordered sequence, where one step’s output is the next step’s inputDraft summary, then categorize, then budget recommendation
RoutingSends the work down a different path depending on a checkDraft, then audit; ship on pass, back to revise on fail
ParallelizationRuns independent steps at the same time, by sectioning or by votingCategorize, validate the ledger and run a privacy check all at once
Orchestrator and workersOne step splits a big task, hands each part to a worker, then combines the resultsAnalyze my spending: a category breakdown, a trend analysis and anomaly detection, then merge
Evaluator and optimizerOne step drafts, a second grades it against a standard, the first revises, until good enoughDraft a recommendation, evaluate it against the goals, revise until zero goals fail

Two kinds of parallel

Parallelization comes in two forms. Sectioning splits the work into different subtasks that run side by side. Voting runs the same task several times and compares the results.

Which shape do I need?

The notes reduce the choice to five questions, one for each pattern.

Which shape do I need? · Module 4 lecture notes p. 4
  1. Question 1Does each step need the result of the one before it?Use chaining.
  2. Question 2Does a check send work down a different path?Use routing.
  3. Question 3Are two or more steps independent of each other?Use parallelization.
  4. Question 4Is it too broad for one step, and does it split into sub-tasks?Use an orchestrator and workers.
  5. Question 5Does quality depend on refining against a standard, more than once?Use an evaluator and optimizer.

Then pick the smallest shape that fits. A plain chain with one router is often enough.

The trap: pattern overkill

An orchestrator for a two-step task is overbuilt. So is forcing all five shapes onto a simple job, or a refine loop with no stop condition. Right-sized means a plain chain and router where that is enough, orchestration only for genuinely big tasks, and a loop only where quality truly needs it.

Key ideaPick the smallest shape that fits. More structure is not more quality.

Mental Model card #18 · Choose the shape

The third card fits each pattern into a few words.

  • Chain Order matters.
  • Router A check changes the path.
  • Parallel Independent steps run together.
  • Orchestrator Split, delegate and combine.
  • Evaluator Refine until good enough, then pick the smallest shape that fits.

Key takeaways

  • Chaining is for order, routing is for a check that changes the path.
  • Parallelization is for independent steps, by sectioning or voting.
  • Orchestrator and workers is for a task too broad for one step.
  • Evaluator and optimizer is for quality that needs repeated refining against a standard.
  • Choose the smallest pattern that fits, and avoid overkill.

Study explanation based on the supplied Module 4 lecture notes and reading list for Agentic AI in Practice. The slides the notes accompany were not supplied, so nothing here is attributed to them. Open the source notes above for page-level traceability.

Your study checkpoint

Ready to continue?

Mark the lesson complete once you have read it and tried its idea on something real.

Next · Lesson 4