LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
  • Agent
  • Middleware
  • Backends
  • Sandboxes
  • Skills
  • Subagents
  • Types
Modal
Daytona
Deno
Node VFS
Sandbox Standard Tests
  • Vitest
⌘I

LangChain Assistant

Ask a question to get started

Enter to send•Shift+Enter new line

Menu

OverviewAgentMiddlewareBackendsSandboxesSkillsSubagentsTypes
Modal
Daytona
Deno
Node VFS
Sandbox Standard Tests
Vitest
Language
Theme
JavaScriptdeepagentsindexcreateSubagentTransformer
Function●Since v1.10

createSubagentTransformer

Native transformer that correlates task tool calls into SubagentRunStream objects and routes child-namespace tools and messages events into per-subagent channels.

Marked __native: true — the subagents projection key lands directly on the GraphRunStream instance as run.subagents.

Copy
createSubagentTransformer(path: Namespace): () => NativeStreamTransformer<SubagentProjection>

Parameters

NameTypeDescription
path*Namespace
View source on GitHub