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

Chat LangChain

What can I help with?

Enter to sendยทShift+Enter new line

Menu

OverviewAgentMiddlewareBackendsSandboxesSkillsSubagentsTypes
Modal
Daytona
Deno
Node VFS
Sandbox Standard Tests
Vitest
Language
Theme
JavaScriptdeepagentstypesDeepAgent
Interfaceโ—Since v1.6

DeepAgent

Copy
interface DeepAgent

Bases

ReactAgent<TTypes>

Properties

Methods

View source on GitHub

Example

property
~deepAgentTypes: TTypes
property
options: CreateAgentParams<TTypes["Response"], TTypes["State"], TTypes["Context"]>
property
checkpointer: boolean | BaseCheckpointSaver<number>
property
graph
property
store: BaseStore
method
drawMermaid
method
drawMermaidPng
method
invoke
method
stream
method
streamEvents
method
withConfig

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 delegation.

Type brand for DeepAgent type inference

Optional checkpointer for persisting agent state between runs

Optional BaseStore for persistent cross-conversation storage

Copy
const agent: DeepAgent<DeepAgentTypeConfig<...>> = createDeepAgent({ ... });

// Access subagent types for streaming
type Subagents = InferDeepAgentSubagents<typeof agent>;