Skip to content

Commit 4feb962

Browse files
committed
docs(website): document nested-delegation stream behavior in the subgraphs guide
1 parent cbd06f6 commit 4feb962

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

apps/website/content/docs/langgraph/guides/subgraphs.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,8 @@ Because `ResearchState` has no `messages` key, the child cannot read the transcr
169169

170170
The `subagents()` signal contains a Map of active child streams. Tool-dispatched children — Deep Agents' default `task` tool or your own delegation tools — are keyed by tool-call id and named by their `subagent_type`. Plain subgraph nodes are keyed by their namespace segment and named by node; they register on their first streamed event and settle with the run.
171171

172+
Nested delegation — a subagent that itself dispatches a delegation tool — surfaces as its own entry too, keyed by its namespace path (truncated at the innermost delegation segment) and treated like a plain subgraph stream. Each level of delegation gets its own stream; the map stays flat, so there's no parent/child linking between the entries.
173+
172174
```typescript
173175
// In a shared file (e.g. agent.ts):
174176
// import { createAgentRef } from '@threadplane/chat';

0 commit comments

Comments
 (0)