Deep Agents build on LangGraph’s event streaming model and add a first-classDocumentation Index
Fetch the complete documentation index at: https://docs.langchain.com/llms.txt
Use this file to discover all available pages before exploring further.
subagents projection. Use it when you want application-facing streams for the coordinator agent, delegated subagents, nested messages, tool calls, and final state.
For information about lower-level Pregel stream modes, refer to the Deep Agents streaming docs.
Stream subagents
Deep Agents add a subagent projection on top of LangGraph streaming. Userun.subagents when you want one stream handle per delegated task call. The projection discovers subagent tasks first, then opens message, tool-call, and value streams when you access them on a subagent handle.
Subagent stream fields
Each subagent stream exposes the same kinds of projections as the parent run, such as messages, tool calls, nested subagents, and final output. For the general parent-run streaming model, see LangChain Event Streaming. TypeScript uses camelCase projection names such astoolCalls and taskInput.
| Field | Description |
|---|---|
name | Subagent name. |
messages | Messages emitted by the subagent. |
subagents | Nested subagent invocations. |
output | Final subagent state, or completion signal for the delegated task. |
taskInput | Promise for the prompt passed to the task tool. |
| callId | Tool-call ID for the delegated task. |
| namespace | Namespace path for the subagent run. |
| toolCalls | Tool calls scoped to the subagent. |
Track subagent lifecycle
Userun.subagents when you only need to show which subagents started and finished. You do not need to subscribe to message or value streams unless you access those projections on an individual subagent.
Stream messages and tools
Deep Agents can emit messages and tool calls from the coordinator agent and from delegated subagents. Userun.messages or run.tool_calls for coordinator streams, then access the same projections on each subagent.
Consume concurrently
Coordinator and subagent output often interleave. Consume projections concurrently when you need live UI updates. Use concurrent consumers in JavaScript:Related
- Streaming cookbook shows runnable Event Streaming examples.
- LangChain Event Streaming covers general agent message and tool-call streaming concepts.
- Subagent frontend streaming shows UI patterns that separate coordinator messages from subagent cards.
- LangGraph Event Streaming covers the underlying graph streaming model.
Connect these docs to Claude, VSCode, and more via MCP for real-time answers.

