Tech Leaders Hub — Class 8
Lab 6

LangGraph Anatomy

Step through the building blocks of a LangGraph — nodes, edges, conditional edges, shared state, START and END.

Graph Structure

STARTLLM Nodereads state → calls LLM → updates stateconditionaledgeneeds toolhas answerTool Nodeexecutes tool callsENDloop backShared Statemessages: [...]tool_calls: [...]next: "llm" | "tools" | "end"
Step 1 of 8

A LangGraph is a State Machine

Every LangGraph has the same building blocks: nodes, edges, and shared state. Click through to learn each one.

Node
A function that reads state, does work, writes state
Edge
A fixed path from one node to the next
Conditional Edge
A decision point — routes based on current state
Shared State
The data object that flows through every node
🚀

Next Class: Build a LangGraph Agent From Scratch

You've seen the anatomy. Next class, you'll write the nodes, edges, and state yourself — in Python.