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
JavaScriptdeepagentsmiddlewareCompiledSubAgent
Interface●Since v1.4

CompiledSubAgent

Type definitions for pre-compiled agents.

Copy
interface CompiledSubAgent

Properties

View source on GitHub
property
description: string
property
mode: "handoff" | "fork"
property
name: string
property
runnable: TRunnable

The description of the agent

Context mode. "fork" inherits the parent's conversation history (but not its system prompt — that's baked into the runnable). "handoff" (default) is fully isolated.

The name of the agent

The agent instance