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
JavaScriptdeepagentsindexCompiledSubAgent
Interface●Since v1.6

CompiledSubAgent

Type definitions for pre-compiled agents.

Copy
interface CompiledSubAgent

Properties

property
description: string

The description of the agent

property
mode: "fork" | "isolated"

Context mode. "fork" inherits the parent's conversation history (but not its system prompt — that's baked into the runnable). "isolated" (default) only sees the delegated task.

property
name: string

The name of the agent

property
runnable: TRunnable

The agent instance

View source on GitHub