LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
LangGraph
  • Web
  • Channels
  • Pregel
  • Prebuilt
  • Remote
  • Stream
LangGraph SDK
  • Ui
  • Client
  • Auth
  • React
  • Logging
  • React Ui
  • Utils
  • Server
  • Stream
LangGraph Checkpoint
LangGraph Checkpoint MongoDB
LangGraph Checkpoint Postgres
  • Store
LangGraph Checkpoint Redis
  • Shallow
  • Store
LangGraph Checkpoint SQLite
LangGraph Checkpoint Validation
  • Cli
LangGraph API
LangGraph CLI
LangGraph CUA
  • Utils
LangGraph Supervisor
LangGraph Swarm
⌘I

LangChain Assistant

Ask a question to get started

Enter to send•Shift+Enter new line

Menu

LangGraph
WebChannelsPregelPrebuiltRemoteStream
LangGraph SDK
UiClientAuthReactLoggingReact UiUtilsServerStream
LangGraph Checkpoint
LangGraph Checkpoint MongoDB
LangGraph Checkpoint Postgres
Store
LangGraph Checkpoint Redis
ShallowStore
LangGraph Checkpoint SQLite
LangGraph Checkpoint Validation
Cli
LangGraph API
LangGraph CLI
LangGraph CUA
Utils
LangGraph Supervisor
LangGraph Swarm
Language
Theme
JavaScript@langchain/langgraph-sdkstreamStreamControllerresolveSubagentNamespace
Method●Since v1.9

resolveSubagentNamespace

Copy
resolveSubagentNamespace(toolCallId: string): Promise<void>
View source on GitHub

Parameters

NameTypeDescription
toolCallId*string

Lazily resolve a single subagent's execution namespace from checkpoint history. Intended call site: the first scoped useMessages / useToolCalls mount for a subagent whose namespace is still the default tools:<toolCallId>. A fallback for the hydrate-time bulk seed (#seedDiscoveryFromHistory) — most subagents are already promoted by the time a panel opens.

Skips ids already promoted past default-only (SSE replay or a prior resolve). Concurrent calls for the same id share one getHistory walk via #namespaceResolves.

Parent task tool-call id (the subagent's discovery key).