Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

12.7 LangChain Ecosystem 2026

This section covers the roles of LangChain v1, Deep Agents, and managed execution, and how to migrate older tool-calling code.


The LangChain Ecosystem at a Glance

LangChain has grown from a single framework into a complete ecosystem. As of 2026, the core members of the LangChain ecosystem are:

ToolPositioningCore value
LangChainCore orchestration frameworkComponent abstractions + the LCEL expression language
LangGraphStateful Agent frameworkGraph-based orchestration, loops, human-in-the-loop
Deep AgentsReusable Agent HarnessFilesystem, context management, subagents, and optional planning and Skills
Managed Deep AgentsManaged delivery of the HarnessDeclare Agent behavior and let LangSmith host execution
LangSmith Agent ServerManaged runtime serviceDeployment, scaling, persistence
LangSmithAgent engineering platformTracing, evaluation, prompt management, and deployment

💡 Evolution logic: LangChain provides components, LangGraph supports stateful orchestration and execution, and Deep Agents combines ready-made Harness capabilities. You can run the Agent yourself or choose a managed path such as Managed Deep Agents; LangSmith covers tracing, evaluation, and deployment. Understanding these responsibilities matters more than memorizing product names.


Deep Agents and Managed Deep Agents: From Harness to Managed Execution

Chapters 7–9 covered context engineering, Harnesses, and Skills separately. A research assistant, for example, may need to save findings, manage growing context, and delegate some work to subagents alongside its search tool. Deep Agents combines these capabilities into a reusable Harness. It builds on LangChain's Agent components and uses the LangGraph runtime for durable execution, streaming, and human-in-the-loop.[5]

What Does Managed Execution Add?

Managed Deep Agents (MDA) reuses the open-source Deep Agents Harness and runs it on LangSmith Agent Server. Developers define the model, instructions, tools, and business behavior; the platform assembles the Harness and runtime infrastructure. The change is in engineering responsibilities: developers define Agent behavior, while the platform manages its runtime lifecycle.[6]

ConcernDeep Agents: Run It YourselfManaged Deep Agents: Managed Execution
Agent definitioncreate_deep_agent returns a compiled Agentdefine_deep_agent returns a definition that the platform compiles
Business behaviorConfigure the model, instructions, tools, and optional capabilitiesDeclare the model, instructions, tools, and optional capabilities in project files
Runtime infrastructureConfigure your own backend, store, checkpointer, and serverThe managed runtime supplies these components and manages their lifecycle
Selection criterionYou need to run it yourself or customize underlying componentsYou want the ready-made Harness with less infrastructure work

Organizing Agent Behavior as Project Files

A research assistant can start with a small directory, adding only the capabilities its task needs:

research-assistant/
├── agent.py          # Model and core configuration
├── instructions.md   # Behavioral instructions
├── tools/            # Business tools such as search
└── skills/           # Research workflows loaded on demand

agent.py declares the Agent definition, with tool implementations in tools/. Instructions describe how to complete research tasks, while Skills package reusable procedures. After the project is uploaded, the managed runtime assembles the definition into a runnable Agent.[6]

This follows the capability boundaries introduced earlier: Tools provide actions, Skills describe procedures, the Harness manages execution, and the managed runtime supplies runtime infrastructure. With these boundaries in mind, add capabilities as the task requires them; see the official documentation for complete configuration and deployment steps.[6]

💡 Selection tip: First decide whether you need Deep Agents' ready-made capabilities, then decide whether to use managed execution. Simple tool calling can continue to use a LangChain Agent; explicit control flow can use a custom LangGraph workflow. With MDA, developers still design business tool correctness, permission boundaries, and outcome evaluation. See 22.1 Agent Application Deployment Architecture for deployment choices.

Version note: As of October 7, 2026, the official documentation labels MDA as Beta. This section focuses on responsibilities and project organization; consult the official documentation for current APIs and deployment requirements.[5][6]


Deployment and MCP integration

LangSmith Agent Server provides durable execution, thread state, and streaming APIs. It can run on LangSmith Cloud, in your cloud, or on self-hosted infrastructure. Decide who owns the runtime, checkpoint storage, recovery, and identity checks. Consult the LangServe repository when maintaining an existing LangServe app, and the Agent Server deployment guide and Chapter 22 when deploying a stateful agent.

For local development, register a Python graph export in langgraph.json and use langgraph dev to test threads, invocation, and streaming. Use langgraph up to check the PostgreSQL-backed environment before deployment. See local development and testing.

LangChain's MCP integration discovers external tools and adapts them for create_agent. The official MCPAdapter interface requires langchain[mcp]>=1.4.0 and is in beta. Check protocol compatibility between adapter and server, and keep connection-bound tools within the lifetime of the connection. See LangChain MCP integration and the SDK example in 19.5.

Migrate an existing agent to v1

Legacy patternv1 pattern
AgentExecutor + create_openai_tools_agentcreate_agent(model, tools, system_prompt=...)
langgraph.prebuilt.create_react_agentlangchain.agents.create_agent
input, chat_history, agent_scratchpadmessages with an optional checkpointer and a thread_id per thread
Manually attached pre- or post-model hooksAgent middleware
Legacy components such as LLMChainLCEL for fixed pipelines, or langchain-classic for compatibility

After migration, compare tool arguments, returned messages, and failure behavior. Start with 12.3 for a standard tool loop. Build a LangGraph state graph when you need direct control over state and execution order. See the LangChain v1 migration guide.

References

[5] LangChain Team. Deep Agents Overview. Accessed 2026-10-07.

[6] LangChain Team. Managed Deep Agents Overview. Accessed 2026-10-07.