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.
SubscribeRelated
StateGraphSTARTENDCommandinterruptRetryPolicycheckpointerFunctional API