LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
LangGraph
  • Web
  • Channels
  • Pregel
  • Prebuilt
  • Remote
React SDK
Vue SDK
Svelte SDK
Angular SDK
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
WebChannelsPregelPrebuiltRemote
React SDK
Vue SDK
Svelte SDK
Angular SDK
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/vueSubagentDiscoverySnapshot
Interface●Since v1.0

SubagentDiscoverySnapshot

Lightweight discovery record for a subagent running inside the thread.

Populated eagerly from the root subscription (tools + lifecycle channels). Content projections (messages, toolCalls, custom extensions) are opened lazily via selector hooks, keyed on namespace.

Copy
interface SubagentDiscoverySnapshot

Properties

property
completedAt: Date | null

Wall-clock timestamp when the task tool terminated (null if running).

property
depth: number

Nesting depth from the root (root = 0).

property
error: string | undefined

Error message if the subagent failed.

property
id: string

Tool-call id that created the subagent.

property
name: string

Subagent type, e.g. "researcher".

property
namespace: readonly string[]

Namespace prefix for every event emitted by this subagent.

property
output: unknown

Raw output payload once the subagent completes.

property
parentId: string | null

Parent subagent id, or null if spawned from the root.

property
startedAt: Date

Wall-clock timestamp when the task tool started.

property
status: "error" | "running" | "complete"

Lifecycle status derived from task tool events.

property
taskInput: string | undefined

Task description passed to the subagent.

View source on GitHub