LangGraph 1 · Running and streaming

Limit the number of steps

Stop loops from running forever. LangGraph raises an error when the limit is hit.

graph.invoke(inputs, {"recursion_limit": 50})

Official LangGraph 1 documentation

More running and streaming commands

All running and streaming commands · LangGraph 1 cheatsheet

Was this page helpful?