Multi-Agent Systems
Supervisor patterns, agent teams, and coordination.
Agent Handoffs
Agents transfer control directly to each other using the Command API, forming a peer network where any agent can hand off to any other without a central supervisor.
Evaluator-Optimizer Pattern
An iterative loop where one LLM generates content and another evaluates it with structured feedback, repeating until the output meets a defined quality threshold.
Subgraph Architecture
Each agent is a fully independent StateGraph with its own state schema, compiled separately and invoked as a single node inside a parent graph for maximum encapsulation and modularity.
Supervisor Pattern
A central supervisor agent receives every user request, decides which specialist sub-agent should handle it, routes work via conditional edges, and aggregates results before deciding the next step.