Lesson 4.1: The "Save Game" (Checkpointers)

Now that our graph has logic (Module 3) and short-term memory (Module 2), we face a new problem: Long-term Memory. If you restart your script, the Python dictionary (State) is destroyed. The bot forgets who you are. To build a real application (like ChatGPT), you need to save the state to a database and reload … Read more

Lesson 3.2: The Loop (Cycles)

The most powerful feature of LangGraph is that it allows Cycles. You can draw an edge from Node B back to Node A. This creates a loop. The Scenario A “Coin Flip” game. The agent keeps flipping a coin until it gets “Heads”. The Code Output (Randomized) Key Concept: Recursion Limit If you ran this … Read more