Subgraphs & the Supervisor
Multi-agent LangGraph: routing and updating state in one Command return, using a compiled graph as a node, and choosing between shared and isolated history for a worker.
Last updated
After this section you can
- Route and update state in one return with Command
- Use a compiled graph as a node, and translate between mismatched state schemas
- Decide between shared and isolated history for a worker
Subgraphs & the Supervisor
Multi-agent in LangGraph is not a special mode. A supervisor is a node that returns where to go next, and a sub-agent is a compiled graph used as a node.
Command lets one node do both jobs at once: update the state and name the next node. Once routing is a return value rather than a static edge, a supervisor is ordinary code — and testable without a model.