LangChain LangGraph
Module 1 Module 2 Module 3 Module 4 Module 5 Module 6
HomeLangGraphModule 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
State Reducers
Merge functions that control how fields are updated
3
Multiple Schemas
Input/output schemas and private state isolation
4
Trim & Filter Messages
Control which messages are sent to the LLM
5
Chatbot Summarization
Use rolling summaries to compress conversation history
6
Chatbot External Memory
Persist cross-session memory in external storage
Module 2 Summary
State & Memory · Overview and key ideas from all 6 lessons