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
JavaScriptdeepagentsAgent

Agent

The createDeepAgent function is the main entry point for creating deep agents.

Learn more: For tutorials and guides on building deep agents, see the Deep Agents documentation.

Functions

Function

createDeepAgent

Create a Deep Agent.

This is the main entry point for building a production-style agent with deepagents. It gives you a strong default runtime (filesystem, tasks, subagents, summarization) and lets y

Interfaces

Interface

CreateDeepAgentParams

Configuration parameters for creating a Deep Agent Matches Python's create_deep_agent parameters

Interface

DeepAgent

DeepAgent extends ReactAgent with additional subagent type information.

This type wraps ReactAgent but includes the DeepAgentTypeConfig which contains subagent types for type-safe streaming and deleg

Interface

SubAgent

Specification for a declarative subagent.

When using createDeepAgent, subagents automatically receive a default middleware stack (filesystemMiddleware, summarizationMiddleware, etc.) before any cus

Interface

CompiledSubAgent

Type definitions for pre-compiled agents.

Types

Type

MergedDeepAgentState

Combined state type including custom middleware and subagent middleware states