Back to course

LangGraph Core: Nodes and Edges

Agentic AI Engineering (Build, don't just prompt)

The Graph Philosophy

LangGraph treats an agent like a flow chart.

  • Nodes: Functions that perform work (e.g., 'Search', 'Summarize').
  • Edges: Paths between nodes (e.g., 'Go to summarize after search').

The State Object

Every node receives a 'State' and returns an updated 'State'. This is how information flows.