This repository contains a comprehensive set of Jupyter notebooks for learning LangGraph, from beginner to advanced levels.
- 01_Introduction_to_LangGraph.ipynb - Basic concepts and setup
- 02_Simple_State_Machines.ipynb - Understanding state management
- 03_Basic_Agents.ipynb - Creating your first agent
- 04_Advanced_State_Management.ipynb - Complex state patterns
- 05_Multi_Agent_Systems.ipynb - Working with multiple agents
- 06_Conditional_Flows.ipynb - Dynamic routing and conditions
- 07_Memory_and_Context.ipynb - Managing conversation history
- 08_Complex_Workflows.ipynb - Real-world workflow examples
- 09_Custom_Components.ipynb - Building custom nodes and edges
- 10_Production_Patterns.ipynb - Deployment and optimization
- 11_Advanced_Integration.ipynb - External APIs and tools
- 12_Real_World_Projects.ipynb - Complete project examples
pip install langgraph langchain langchain-openai jupyter- Clone this repository
- Install dependencies:
pip install -r requirements.txt - Start Jupyter:
jupyter notebook - Follow the notebooks in order
- LangGraph fundamentals
- State management basics
- Simple agent creation
- Basic workflow patterns
- Complex state management
- Multi-agent coordination
- Conditional logic and routing
- Memory and context handling
- Custom component development
- Production deployment patterns
- External tool integration
- Real-world project implementation
Create a requirements.txt file with:
langgraph>=0.2.0
langchain>=0.2.0
langchain-openai>=0.1.0
jupyter>=1.0.0
python-dotenv>=1.0.0
- Create a
.envfile with your OpenAI API key:
OPENAI_API_KEY=your_api_key_here
- Install dependencies:
pip install -r requirements.txtEach notebook follows a consistent structure:
- Theory: Conceptual explanation
- Examples: Practical code examples
- Exercises: Hands-on practice
- Challenges: Advanced problems to solve
Feel free to contribute improvements, additional examples, or new notebooks!
This project is licensed under the MIT License - see the LICENSE file for details.