Skip to content
masterclass Buddy

AI Agents · Concept

Workflow

LangGraph's Graph API builds agents from nodes, shared state, and edges. Fixed edges handle known paths; Command enables run-time routing between nodes.

Last updated

Syntax

workflow = StateGraph(State)
workflow.add_node(name, function)
workflow.add_edge(source, destination)
app = workflow.compile()
result = app.invoke(initial_state)

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • StateGraph
  • START
  • END
  • Command
  • interrupt
  • RetryPolicy
  • checkpointer
  • Functional API

Source: Thinking in the Graph API - Docs by LangChain. Checked 2026-11-03.