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

Lesson 1.1: The "Hello World" Graph

In a standard script, you call function A, get the result, and pass it to function B. In LangGraph, you don’t call functions directly. You place them on a “board” (the Graph) and draw lines between them. The Graph manages the execution. The 4-Step Recipe Every LangGraph application follows the exact same 4-step structure: The … Read more