Udemy
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
LangChain Deep Agents: Building Agent Harnesses
New
Rating: 5.0 out of 5(2 ratings)
13 students

LangChain Deep Agents: Building Agent Harnesses

LangChain Deep Agent Harnesses with Planning, Tools, MCP, Memory, Backend, Skills, Subagents, Middleware and HITL 2027
Created byManas Dasgupta
Last updated 11/2026
English

What you'll learn

  • Build Deep Agents using LangChain's create_deep_agent and understand the agent harness architecture around the model and tool loop.
  • Design safe, typed agent tools and connect Deep Agents to real business data using Python, Pydantic and MySQL.
  • Connect agents to MCP servers, discover and filter MCP tools, and combine MCP capabilities with local Python tools.
  • Engineer agent context using files, memory, skills, runtime context and specialized subagents.
  • Add production controls using middleware, retries, fallback patterns, permissions and human-in-the-loop workflows.
  • Trace and evaluate agent behavior with LangSmith and reason about common production failure modes.

Course content

7 sections • 33 lectures • 6h 24m total length
  • Course Introduction9:24

Requirements

  • Basic Python programming knowledge
  • Familiarity with LLMs and prompts
  • Basic understanding of APIs and JSON
  • Basic SQL knowledge

Description

Building an agent that can plan, work across business systems, manage context, delegate work, recover from failures and safely execute real actions is a very different engineering problem.

LangChain Deep Agents: Building Agent Harnesses is a practical course focused on that engineering layer.

Rather than treating the model as the complete agent, we will look at the agent harness around the model — planning, tools, MCP, files, memory, skills, subagents, middleware, permissions, human-in-the-loop, observability and evaluations.

The course is built around five progressively more capable mini-projects.

You will begin with a Tech Research Assistant to understand Deep Agents, planning and tool use.

Next, you will build a MySQL-backed Customer Support Agent that verifies customers, checks orders, handles errors gracefully and performs controlled business actions.

You will then build an Inventory MCP Assistant, where agent capabilities are exposed through an MCP server. You will learn tool discovery, capability filtering and the important Discover → Filter → Expose pattern.

The fourth project is a Sales Account Research Assistant using files, memory, skills, runtime context and specialized subagents to manage larger research workflows.

Finally, you will build an Order Operations Deep Agent with middleware, retry and fallback patterns, filesystem permissions, checkpointing and human-in-the-loop decisions such as approve, edit, reject and respond.

Along the way, we will also explore LangSmith tracing, agent evaluations, context engineering and common production failure modes.

The goal is not to create unnecessarily complex multi-agent systems. Instead, you will learn when each capability actually adds value.

By the end of the course, you should be able to move beyond:

“I can build an agent that calls tools.”

toward:

“I can engineer the harness around an agent.”

That means designing its capabilities, controlling its context, connecting external systems, constraining risky actions and observing whether the agent is actually behaving as intended.

The course is highly practical, Python-based and built around runnable projects rather than isolated API demonstrations.

Course Structure

Module 1 — From LangChain Agents to Deep Agents

Core concepts

  • Deep Agents and the agent harness

  • create_deep_agent

  • model configuration

  • structured system prompts

  • tools

  • planning

  • TodoListMiddleware

  • write_todos

  • name

  • debug

Mini-project: Tech Research Assistant

Progression:
Simple Agent → Planning Agent

Module 2 — Tools, MySQL and Real-World Agent Actions

Core concepts

  • @tool

  • Pydantic args_schema

  • narrow business tools

  • parameterized SQL

  • MySQL

  • read vs action tools

  • structured responses

  • graceful tool errors

  • ModelRetryMiddleware

  • lightweight resilience

Mini-project: AI Customer Support Agent

Progression:
Reasoning → Business-System Actions

Module 3 — MCP: Giving Deep Agents External Capabilities

Core concepts

  • MCP architecture

  • FastMCP

  • stdio

  • MCPAdapter

  • MCP tool discovery

  • list_tools()

  • capability filtering

  • local tools + MCP tools

  • remote MCP concepts

  • OAuth concepts

  • least privilege

Mini-project: Inventory MCP Assistant

Progression:
Local Tools → Reusable External Capabilities

Module 4 — Planning, Files, Memory and Subagents

Core concepts

  • agent filesystem

  • working files

  • AGENTS. md

  • memory

  • skills

  • runtime context

  • checkpointer

  • specialized subagents

  • general-purpose subagents

  • context isolation

  • when not to use subagents

Mini-project: Sales Account Research Assistant

Progression:
Single Agent → Context-Managed Agent Harness

Module 5 — Reliable and Production-Ready Deep Agents

Core concepts

  • AgentMiddleware

  • middleware ordering

  • retry

  • fallback

  • prompt caching concepts

  • permissions

  • human-in-the-loop

  • approve / edit / reject / respond

  • checkpointing

  • streaming concepts

  • LangSmith

  • observability

  • evaluations

  • production failure modes

Mini-project: Order Operations Deep Agent

Progression:
Capable Agent → Controlled Production Agent

Five Mini-Projects

1. Tech Research Assistant
Planning, local tools and recommendation workflows.

2. AI Customer Support Agent
MySQL, structured tools, controlled actions and error handling.

3. Inventory MCP Assistant
MCP tool discovery, inventory lookup, shortage calculation and supplier research.

4. Sales Account Research Assistant
Subagents, files, memory, skills and context management.

5. Order Operations Deep Agent
Middleware, HITL, permissions, tracing and evaluations.

Who this course is for:

  • Python developers building LLM-powered applications
  • AI and Generative AI developers who already understand basic agents and tool calling
  • LangChain developers who want to move beyond simple agent examples
  • Developers exploring agentic AI, MCP and multi-agent architectures
  • AI engineers who need practical patterns for memory, context management, permissions and HITL
  • Technical professionals who want to understand how production agent systems are engineered
  • Developers preparing to build enterprise or business-process AI agents