Subgraphs
A subgraph is a whole graph used as one node of another graph. See the two ways to connect them (a wrapper function or a shared state key), what stays private, and how a subgraph remembers or forgets between calls.
11 minPro
Checking your access…
Inside this lesson
- An animation you play, pause and step through, with each part saying what it is doing.
- The real code beside it, with the lines for each step lit up.
- Practice mode, where you route each message yourself, and a short quiz.
- About 11 minutes.
Written from the official documentation
In this module: Subgraphs and multi agent
- SubgraphsCall a graph inside a node or add it as a node, with its own state.Pro
- Handoffs and subagentsWrap agents as tools or hand control from one agent to another.Pro
- Routers, skills and custom workflowsPick a multi agent pattern by context, cost and latency.Pro
- MCP tools in a graphLoad tools from MCP servers and manage connections and auth.Pro