LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
  • Agent
  • Middleware
  • Backends
  • Sandboxes
  • Skills
  • Subagents
  • Configuration
  • 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

OverviewAgentMiddlewareBackendsSandboxesSkillsSubagentsConfigurationTypes
Modal
Daytona
Deno
Node VFS
Sandbox Standard Tests
Vitest
Language
Theme
JavaScriptdeepagentsmiddlewareAsyncSubAgent
Interface●Since v1.8

AsyncSubAgent

Copy
interface AsyncSubAgent

Properties

View source on GitHub
property
description: string
property
graphId: string
property
headers: Record<string, string>
property
name: string
property
url: string

Specification for an async subagent running on a remote LangGraph server.

Async subagents connect to LangGraph deployments via the LangGraph SDK. They run as background tasks that the main agent can monitor and update.

Authentication is handled via environment variables (LANGGRAPH_API_KEY, LANGSMITH_API_KEY, or LANGCHAIN_API_KEY), which the LangGraph SDK reads automatically.

What this subagent does. The main agent uses this to decide when to delegate.

The graph name or assistant ID on the remote server.

Additional headers to include in requests to the remote server.

Error name for instanceof checks and logging

URL of the LangGraph server. Omit for local ASGI transport.