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
Files
- compare.py (9 lines)
- crew.py (35 lines)
- patterns.py (42 lines)
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.