LangGraph
LangChain extension for building stateful agents with cyclic graphs. Handles memory, decision loops, conditional routing, and cross-turn persistence. The standard for complex production LLM agents.
Strengths
- Cyclic graphs: agents can loop, re-evaluate, and change strategy mid-run
- Built-in persistence: cross-turn memory, checkpoints, state snapshots
- Native human-in-the-loop: pause agent for human validation, then resume
- Native streaming: each graph node streams its output in real-time
- LangGraph Platform: persistent agent deployment in production (hosted)
Limitations
- Increased complexity vs simple chains, debugging cyclic graphs is non-trivial
- Strong dependency on LangChain ecosystem, same breaking changes, same overhead
- LangGraph Platform (hosted) is paid, self-hosting requires infra work
- Overkill for simple agents (question → tool call → response)
Best for
- Multi-step agents with memory, loops, and human validation
- Complex LLM workflows: iterative search, planning, self-correction
- Enterprise chatbots requiring persistent state across sessions