Udemy
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Build and Evaluate AI Agents with LangChain and LangSmith
New

Build and Evaluate AI Agents with LangChain and LangSmith

Build a shop assistant with LangGraph: tools, memory, RAG, human-in-the-loop, then trace and evaluate it in LangSmith
Created byThanh Vũ
Last updated 10/2026
English
English

What you'll learn

  • Set up a Python project with uv, keep API keys safe in .env, and call chat models on Groq or locally with Ollama
  • Use messages, prompt templates, streaming and structured output to get reliable, typed answers from a model
  • Write tools, run the tool-calling loop by hand, then build agents with create_agent, memory and middleware
  • Add human approval before risky actions, answer from your own documents with RAG, and plug in MCP tools
  • Build LangGraph workflows with state, branches, loops, fan-out, checkpoints, rewind and multi-agent handoffs
  • Trace every step in LangSmith or Langfuse, find the failing step, and read tokens and cost per run
  • Evaluate prompts on a dataset with code and LLM-judge evaluators, version prompts and monitor production
  • Build a deep agent that plans and delegates, and serve your agent as an API with langgraph dev and the SDK

Course content

21 sections • 54 lectures • 5h 18m total length
  • 1.1 Map the ecosystem and make your first model call14:13
  • 1.2 Setup: Find your way in the LangChain docs2:18
  • 1.3 Setup: Get your free Groq API key1:55
  • 1.4 Setup: Install uv and create your project5:10
  • 1.5 Setup: Open JupyterLab, add your key, make the first call6:57
  • 1.6 Setup: Run a model on your own computer with Ollama6:49
  • 1.7 Live code: Your first model call, step by step5:25
  • Lesson 1 quiz

Requirements

  • Basic Python: functions, dictionaries, lists and installing packages
  • No machine learning or LangChain experience needed
  • A free Groq API key (shown step by step), or a computer that can run Ollama
  • A free LangSmith account for lessons 16–18, and optionally a free Langfuse account for the extra Langfuse lesson

Description

This course contains the use of artificial intelligence.

You know some Python and you have used ChatGPT. Now you want to build an assistant that looks things up, takes actions and does not make things up. The LangChain tutorials you find are often written for older versions, or they jump straight to a finished agent, so when something breaks you cannot tell which piece failed.

This course starts from zero and builds one assistant, piece by piece. Our example is Bloom, a small made-up plant shop with real data: 30 plant pages, an orders database and a return policy. In every lesson the Bloom assistant gets one new ability, and you see exactly what changed.

Every lesson has three parts:

  • An explainer with diagrams and animations: the key words first, then the idea block by block, worked on Bloom data by hand before any code.
  • A live-code video: the lesson notebook, cell by cell, with its real outputs. You type along.
  • A quiz and a hands-on Udemy Lab: short exercises in a slightly different situation, with checks that print ✓ when your code is right, and a worked solution.

What makes it different

  • Current APIs. LangChain 1.x with create_agent and middleware, LangGraph 1.x, the LangSmith SDK, MCP adapters and Deep Agents, versions pinned so the code keeps running.
  • Real runs, real numbers. Every answer, token count and cost on screen comes from a real model call. When the model invents a tracking number or calls the wrong tool, the course shows it, finds the cause in the trace, and fixes it.
  • Free to follow. Examples run on the open-weight gpt-oss model through Groq's free tier, or on your own computer with Ollama.
  • Setup shown on screen. Real screen recordings for installing uv, getting API keys, JupyterLab, Ollama, LangSmith and Langfuse, including the common errors and how to fix them.

What is inside

  • 21 sections, 54 lectures, about 5 hours 20 minutes of video.
  • 21 quizzes with 172 scenario questions, each answer explained.
  • 20 hands-on Udemy Labs with 72 exercises.
  • The lesson notebook, lab and solution for every section, plus the Bloom data.

Course outline

  1. Map the ecosystem and make your first model call (with setup videos)
  2. Talk to any chat model: invoke, stream and batch
  3. Build conversations with messages and prompt templates
  4. Get typed answers with structured output
  5. Give the model tools and run the loop by hand
  6. Create your first agent with create_agent
  7. Give the agent memory with threads and summaries
  8. Shape agent behaviour with middleware
  9. Keep a human in the loop and add guardrails
  10. Answer from your own documents with RAG
  11. Plug in ready-made tools with MCP
  12. Think in graphs: state, nodes and edges
  13. Branch, loop and fan out in LangGraph
  14. Persist, rewind and remember long-term
  15. Compose multi-agent systems
  16. Trace and debug every step with LangSmith
  17. Evaluate before you ship
  18. Version prompts and monitor production
  19. Extra lesson: trace and monitor with Langfuse (open source, self-hostable)
  20. Build a deep agent that plans, writes files and delegates
  21. Run your agent as a service (capstone)

By the end, you will have built the Bloom assistant yourself, traced it, scored it on your own evaluation set, and served it as an API.

Narration uses an AI-synthesized voice. Bloom, its plants, customers and orders are made up for this course. LangChain, LangGraph, LangSmith, Langfuse, Groq and Ollama are products of their respective owners. Examples, animations, exercises and quizzes are original to this course.

Who this course is for:

  • Python beginners who want to build their first AI assistant or agent and understand every piece
  • Developers who used older LangChain versions and want the current 1.x way, LangGraph and LangSmith
  • Students and freelancers who want a working portfolio project: a traced, evaluated, deployed assistant
  • Anyone who tried an agent tutorial, saw it break, and could not tell why