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
JavaScriptdeepagentsmiddlewareAsyncTask
Interface●Since v1.9

AsyncTask

A tracked async subagent task persisted in agent state.

Each task maps to a single thread + run on a remote Agent Protocol server. The taskId is the same as threadId, so it can be used to look up the thread directly via the SDK.

Copy
interface AsyncTask

Properties

property
agentName: string

Name of the async subagent type that is running.

property
checkedAt: string

ISO timestamp of the most recent status poll via the check tool.

property
createdAt: string

ISO timestamp of when the task was launched.

property
description: string

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

property
runId: string

Run ID for the current execution on the thread.

property
status: AsyncTaskStatus

Current task status.

property
taskId: string

Unique identifier for the task (same as thread id).

property
threadId: string

Thread ID on the remote server.

property
updatedAt: string

ISO timestamp of the most recent task update — set when the task status changes or a follow-up message is sent via the update tool.

View source on GitHub