Welcome to Tutorial 7. Here we introduce LangGraph — the graph-based execution engine that powers all advanced multi-agent patterns covered in Tutorials 8–25.
-
LangGraph fundamentals
- What LangGraph is and how it differs from LangChain
- Nodes, edges, and state management
- Compiling and running a
StateGraph
-
add_messagesandMessagesState- Why a plain
listfield breaks under concurrent updates - The
add_messagesreducer — appending without overwriting - Defining your own
ChatState(TypedDict)withAnnotated
- Why a plain
-
ToolNode— prebuilt tool execution- How
ToolNodereadsAIMessage.tool_callsand returnsToolMessageresults - Parallel tool calls in a single model turn
- Direct tool invocation with the
@tooldecorator
- How
-
Building a ReAct agent from scratch
- The classic loop:
agent → should_use_tools → tools → agent add_conditional_edgeswith an explicitpath_map- How
create_react_agentimplements this internally
- The classic loop:
- Completion of Tutorials 1–6
- Groq API key — see root README for setup instructions