AI Agent Foundation
LangChain
LangGraph
Module 1
Module 2
Module 3
Module 4
Module 5
Module 6
Home
›
LangGraph
›
Module 2 · State & Memory
Module 2
State & Memory
6 core topics · A deeper look at state management, message handling, and memory patterns
1
State Schema
Three ways to define state: TypedDict, Dataclass, and Pydantic
📓
2-1-state-schema.html
Converted Jupyter Notebook page
Notebook
📖
State Schema Deep Dive
Concepts, mechanics, and code notes
Guide
2
State Reducers
Merge functions that control how fields are updated
📓
2-2-state-reducers.html
Converted Jupyter Notebook page
Notebook
📖
State Reducers Deep Dive
Concepts, mechanics, and code notes
Guide
3
Multiple Schemas
Input/output schemas and private state isolation
📓
2-3-multiple-schemas.html
Converted Jupyter Notebook page
Notebook
📖
Multiple Schemas Deep Dive
Concepts, mechanics, and code notes
Guide
4
Trim & Filter Messages
Control which messages are sent to the LLM
📓
2-4-trim-filter-messages.html
Converted Jupyter Notebook page
Notebook
📖
Trim & Filter Deep Dive
Concepts, mechanics, and code notes
Guide
5
Chatbot Summarization
Use rolling summaries to compress conversation history
📓
2-5-chatbot-summarization.html
Converted Jupyter Notebook page
Notebook
📖
Chatbot Summarization Deep Dive
Concepts, mechanics, and code notes
Guide
6
Chatbot External Memory
Persist cross-session memory in external storage
📓
2-6-chatbot-external-memory.html
Converted Jupyter Notebook page
Notebook
📖
External Memory Deep Dive
Concepts, mechanics, and code notes
Guide
∑
Module 2 Summary
State & Memory · Overview and key ideas from all 6 lessons
📋
Module 2 Summary Page
Learning path · Core concept comparisons · Key takeaways from 6 lessons
Summary