LangGraph: Intro

LangChain · Beginner ·🤖 AI Agents & Automation ·2y ago

Key Takeaways

The video introduces LangGraph, a library that builds on top of LangChain, making it easier to create complex agents and customize agent runtimes. It highlights two main agent runtimes: the agent executor and the chat agent executor, and explains how to modify them to add human-in-the-loop functionality and other features.

Full Transcript

hello everyone today I want to talk about Lang grath a new library that we're releasing so langra Builds on top of Lang chain and makes it really easy to create agents and agent run times so what exactly is an agent and an agent runtime so in Lang chain we Define an agent as a system powered by a language model that decides what action to take there's then an agent runtime that basically runs that agent in a loop calls that agent decides what action to take then takes that action and then get records the observation and then passes that back in and starts to Loop over again and continues going through that Loop until the agent decides that it is finished so we've made it easy over the past few months to customize agents in Lang chain with Lang chain expression language and I'd recommend checking those out if you haven't what we're doing with Lang graph is we're making it easy to customize the agent runtime so previously the agent runtime was always the agent EX class and this was basically something that ran in a loop and and called uh Tools in a specific way and and handled errors in a specific way and that was great but it was just one way to create this runtime and so we want to create more ways to create this runtime and ways to create them more flexibly and dynamically and a key part of this runtime is the ability to add Cycles so you know the whole point of the agent runtime is running this agent this llm powered agent in a loop and so you need to be able to have cycles and Lang chain expression language and other uh you know dag likee Frameworks are non they're not cyclical um and so that's what we're introducing L graph for um it's it's a way to create these cyclical agent run times so that's hopefully an overview of what Lang graph is and and why we created it the rest of the videos in this series are going to focus on two of the main agent run times that we've added to start so first we've added a agent executor very similar to the agent executor in uh laying chain so we've recreated that agent executor with L graph and then we've added a chat agent executor the chat agent executive takes in a list of messages and then represents the agent State just as a list of messages and so it returns a list of messages as well the reason we did this is that a lot of the newer models are chat-based models and they intrinsically represent function calling um as as basically parameters of part of a message and then they also have uh function responses being a separate type of message and so representing this agent State as a list of messages is very natural for these types of models and so we've added a separate agent executor particularly for that then I'm going to highlight a bunch of different ways that you can modify the base agent executors to do things like add human in the loops um force uh specific tool to be called First and other exciting things like that hope you enjoy

Original Description

In this video we will introduce LangGraph - a way to more easily build complex agents. Learn how to build with LangGraph on LangChain Academy: https://academy.langchain.com/collections/quickstart/?utm_medium=social&utm_source=youtube&utm_campaign=q4-2025_youtube-academy-links_aw GitHub Repo: https://github.com/langchain-ai/langgraph Observe and evaluate your agents with LangSmith: https://smith.langchain.com/?utm_medium=social&utm_source=youtube&utm_campaign=q4-2025_youtube-links_aw
Watch on YouTube ↗ (saves to browser)
Sign in to unlock AI tutor explanation · ⚡30

Playlist

Uploads from LangChain · LangChain · 47 of 60

1 Chat With Your Documents Using LangChain + JavaScript
Chat With Your Documents Using LangChain + JavaScript
LangChain
2 LangChain SQL Webinar
LangChain SQL Webinar
LangChain
3 LangChain "OpenAI functions" Webinar
LangChain "OpenAI functions" Webinar
LangChain
4 LangSmith Launch
LangSmith Launch
LangChain
5 LangChain x Pinecone: Supercharging Llama-2 with RAG
LangChain x Pinecone: Supercharging Llama-2 with RAG
LangChain
6 LangChain Expression Language
LangChain Expression Language
LangChain
7 Building LLM applications with LangChain with Lance
Building LLM applications with LangChain with Lance
LangChain
8 Benchmarking Question/Answering Over CSV Data
Benchmarking Question/Answering Over CSV Data
LangChain
9 LangChain "RAG Evaluation" Webinar
LangChain "RAG Evaluation" Webinar
LangChain
10 Fine-tuning in Your Voice Webinar
Fine-tuning in Your Voice Webinar
LangChain
11 Tabular Data Retrieval
Tabular Data Retrieval
LangChain
12 Building an LLM Application with Audio by AssemblyAI
Building an LLM Application with Audio by AssemblyAI
LangChain
13 Superagent Deepdive Webinar
Superagent Deepdive Webinar
LangChain
14 Lessons from Deploying LLMs with LangSmith
Lessons from Deploying LLMs with LangSmith
LangChain
15 Shortwave Assistant Deepdive Webinar
Shortwave Assistant Deepdive Webinar
LangChain
16 Cognitive Architectures for Language Agents
Cognitive Architectures for Language Agents
LangChain
17 Effectively Building with LLMs in the Browser with Jacob
Effectively Building with LLMs in the Browser with Jacob
LangChain
18 Data Privacy for LLMs
Data Privacy for LLMs
LangChain
19 "Theory of Mind" Webinar with Plastic Labs
"Theory of Mind" Webinar with Plastic Labs
LangChain
20 LangChain Templates
LangChain Templates
LangChain
21 Using Natural Language to Query Postgres with Jacob
Using Natural Language to Query Postgres with Jacob
LangChain
22 Building a Research Assistant from Scratch
Building a Research Assistant from Scratch
LangChain
23 Benchmarking RAG over LangChain Docs
Benchmarking RAG over LangChain Docs
LangChain
24 Skeleton-of-Thought: Building a New Template from Scratch
Skeleton-of-Thought: Building a New Template from Scratch
LangChain
25 Benchmarking Methods for Semi-Structured RAG
Benchmarking Methods for Semi-Structured RAG
LangChain
26 LangSmith Highlights: Getting Started
LangSmith Highlights: Getting Started
LangChain
27 LangSmith Highlights: Debugging
LangSmith Highlights: Debugging
LangChain
28 LangSmith Highlights: Datasets
LangSmith Highlights: Datasets
LangChain
29 LangSmith Highlights: Evaluation
LangSmith Highlights: Evaluation
LangChain
30 LangSmith Highlights: Human Annotation
LangSmith Highlights: Human Annotation
LangChain
31 LangSmith Highlights: Monitoring
LangSmith Highlights: Monitoring
LangChain
32 LangSmith Highlights: Hub
LangSmith Highlights: Hub
LangChain
33 SQL Research Assistant
SQL Research Assistant
LangChain
34 Getting Started with Multi-Modal LLMs
Getting Started with Multi-Modal LLMs
LangChain
35 Build a Full Stack RAG App With TypeScript
Build a Full Stack RAG App With TypeScript
LangChain
36 Auto-Prompt Builder (with Hosted LangServe)
Auto-Prompt Builder (with Hosted LangServe)
LangChain
37 LangChain v0.1.0 Launch: Introduction
LangChain v0.1.0 Launch: Introduction
LangChain
38 LangChain v0.1.0 Launch: Observability
LangChain v0.1.0 Launch: Observability
LangChain
39 LangChain v0.1.0 Launch: Integrations
LangChain v0.1.0 Launch: Integrations
LangChain
40 LangChain v0.1.0 Launch: Composability
LangChain v0.1.0 Launch: Composability
LangChain
41 LangChain v0.1.0 Launch: Streaming
LangChain v0.1.0 Launch: Streaming
LangChain
42 LangChain v0.1.0 Launch: Output Parsing
LangChain v0.1.0 Launch: Output Parsing
LangChain
43 LangChain v0.1.0 Launch: Retrieval
LangChain v0.1.0 Launch: Retrieval
LangChain
44 LangChain v0.1.0 Launch: Agents
LangChain v0.1.0 Launch: Agents
LangChain
45 Build and Deploy a RAG app with Pinecone Serverless
Build and Deploy a RAG app with Pinecone Serverless
LangChain
46 Hosted LangServe + LangChain Templates
Hosted LangServe + LangChain Templates
LangChain
LangGraph: Intro
LangGraph: Intro
LangChain
48 LangGraph: Agent Executor
LangGraph: Agent Executor
LangChain
49 LangGraph: Chat Agent Executor
LangGraph: Chat Agent Executor
LangChain
50 LangGraph: Human-in-the-Loop
LangGraph: Human-in-the-Loop
LangChain
51 LangGraph: Dynamically Returning a Tool Output Directly
LangGraph: Dynamically Returning a Tool Output Directly
LangChain
52 LangGraph: Respond in a Specific Format
LangGraph: Respond in a Specific Format
LangChain
53 LangGraph: Managing Agent Steps
LangGraph: Managing Agent Steps
LangChain
54 LangGraph: Force-Calling a Tool
LangGraph: Force-Calling a Tool
LangChain
55 LangGraph: Multi-Agent Workflows
LangGraph: Multi-Agent Workflows
LangChain
56 Streaming Events: Introducing a new `stream_events` method
Streaming Events: Introducing a new `stream_events` method
LangChain
57 Building a web RAG chatbot: using LangChain, Exa (prev. Metaphor), LangSmith, and Hosted Langserve
Building a web RAG chatbot: using LangChain, Exa (prev. Metaphor), LangSmith, and Hosted Langserve
LangChain
58 OpenGPTs
OpenGPTs
LangChain
59 Open Source RAG with Nomic's New Embedding Model (and ChromaDB and Ollama)
Open Source RAG with Nomic's New Embedding Model (and ChromaDB and Ollama)
LangChain
60 LangGraph: Persistence
LangGraph: Persistence
LangChain

This video introduces LangGraph, a library that makes it easy to create complex agents and customize agent runtimes. It covers the basics of agents and agent runtimes, and highlights two main agent runtimes: the agent executor and the chat agent executor.

Key Takeaways
  1. Define an agent as a system powered by a language model
  2. Understand the concept of an agent runtime
  3. Learn about the agent executor and chat agent executor
  4. Modify the base agent executors to add human-in-the-loop functionality and other features
  5. Use LangGraph to create and customize agent runtimes
💡 LangGraph allows for the creation of cyclical agent runtimes, which is a key feature for building complex agents.

Related Reads

📰
Sprint One: Why We Pivoted MedReach AI to "Data Intelligence First" and Killed the Paid API
Learn how MedReach AI pivoted to a 'Data Intelligence First' approach and discontinued their paid API, and apply this knowledge to your own project's development
Dev.to AI
📰
How I Taught My Autonomous Coding Agent to Survive API Rate Limits
Learn how to teach an autonomous coding agent to survive API rate limits by detecting limits, failing fast, and making scheduled runs safe to skip
Dev.to · yureki_lab
📰
Staying Anonymous on Telegram — Even When You’re Running AI Bots
Learn how to stay anonymous on Telegram while running AI bots, maintaining your privacy and security in a reputationally private messaging app
Medium · AI
📰
Beyond Chatbots: The 11-Stage AI Agent Architecture That Will Define the Future of Intelligent…
Learn about the 11-stage AI agent architecture that enables autonomous systems to plan, reason, and learn, going beyond traditional chatbots
Medium · LLM
Up next
The AI Gateway: Your Agent's Digital Office Manager
Super Data Science: ML & AI Podcast with Jon Krohn
Watch →