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

AsyncTask

Copy
interface AsyncTask

Properties

View source on GitHub
property
agentName: string
property
checkedAt: string
property
createdAt: string
property
description: string
property
runId: string
property
status: AsyncTaskStatus
property
taskId: string
property
threadId: string
property
updatedAt: string

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.

Name of the async subagent type that is running.

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

ISO timestamp of when the task was launched.

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

Run ID for the current execution on the thread.

Current task status.

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

Thread ID on the remote server.

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.