Page languageFrançaisEnglish
Teacher area
Laurent PoupetClaude trainer and artificial intelligence architectStudent area

Category · Agents and orchestration

What is LangGraph?

LangGraph is a free library from the LangChain team that describes an agent or a workflow as a graph of steps. The state is saved, so you can resume after a failure or pause so that a human can approve.

By , Claude trainer and artificial intelligence architect · Updated

How it works

  • You describe a typed state, nodes that transform it and edges that say which node comes next; conditional edges create branches and loops.
  • Each run carries a thread identifier, which makes it possible to resume the same conversation or task later, where it stopped.
  • In production it is hosted like an ordinary service in a container, with PostgreSQL to save the state, or on the vendor’s deployment platform.

The trap to avoid

The trap is a graph that is too fine-grained, with one node per tiny action; it becomes unreadable, whereas a node should match a meaningful step.

Related terms

Where this is taught

This idea comes up throughout the lessons; we work on it with your own examples during a lesson.

Lesson content (step-by-step instructions, exercises with solutions, quizzes) is for students only, with an access code received after the first lesson.

See the full program

All glossary terms

Trial lesson · 30 min · $20

Book (new tab)