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
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 UiUtilsServer
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/svelteSubagentDiscoverySnapshot
Interfaceā—Since v0.4

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

View source on GitHub
property
completedAt: Date | null
property
depth: number
property
error: string | undefined
property
id: string
property
name: string
property
namespace: readonly string[]
property
output: unknown
property
parentId: string | null
property
startedAt: Date
property
status: "error" | "running" | "complete"
property
taskInput: string | undefined

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

Nesting depth from the root (root = 0).

Error message if the subagent failed.

Tool-call id that created the subagent.

Subagent type, e.g. "researcher".

Namespace prefix for every event emitted by this subagent.

Raw output payload once the subagent completes.

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

Wall-clock timestamp when the task tool started.

Lifecycle status derived from task tool events.

Task description passed to the subagent.