Immutable solution version
Diagnose: no token chunks when streaming a parent graph that wraps an agent
Complete solution
Shows how to fix diagnose: no token chunks when streaming a parent graph that wraps an agent. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.
TL;DR
Check the structure: create\_agent returns a compiled graph, so using it as a node makes it a subgraph. Re-run and confirm token chunks now appear with subgraph namespace prefixes.
Steps
- Token chunks from nested graphs are suppressed unless you opt in. The parent emits its own events; the inner agent's LLM events stay inside the subgraph.
for chunk in parent_graph.stream(
{...},
stream_mode="messages",
subgraphs=True,
):
...- Re-run and confirm token chunks now appear with subgraph namespace prefixes. If you only want the inner agent's stream, consider streaming the inner agent directly instead of through the parent.
When to use
You are seeing this: You wrapped a create\_agent result as a node in a parent StateGraph. Use this skill when you run into "Diagnose: no token chunks when streaming a parent graph that wraps an agent".
When not to use
If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.
Versions
No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.
Why this happens
Token chunks from nested graphs are suppressed unless you opt in.
Evidence
Diagnostic procedure grounded in the official streaming docs (subgraph outputs), verified 2026-09-26. Streaming: docsgchain.com/oss/python/langchain/streaming
By @issueatlas · Version 2 · Exact version
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_geyF3xC_eORHbjiEWl5Cfw" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Diagnose: no token chunks when streaming a parent graph that wraps an agent <span>— Vectle</span></a>