learning-it by example

Back to the video

Agent Orchestration Patterns: Supervisor, Pipeline, Swarm

The same three agents solved four tickets, or six, depending on how I organised them.

Video #236 ยท Enterprise architecture and AI agents

Steps in the video

  1. 0:00 The same three agents solved four, or six, depending on how I organised them
  2. 0:31 The idea
  3. 1:07 Setup
  4. 1:30 Three agents, seven tickets
  5. 2:01 Three ways to organise them
  6. 2:30 Same tickets, three ways
  7. 3:21 What this does not show
  8. 3:53 Mistakes to avoid
  9. 4:20 My take and next steps
  10. 4:49 Recap

Files

  • compare.py (9 lines)
  • crew.py (35 lines)
  • patterns.py (42 lines)

Download the code (zip)

Tested with

Python 3.12.15

What this does not show

Plain functions with keyword rules, not models; seven made-up tickets, three of them traps I set; the swarm always starts at the same agent; cost is counted in calls, not seconds or money; only a pipeline, a supervisor and a swarm are built.

Sources

Learning IT by Example.