Alpha Notice: These docs cover the v1-alpha release. Content is incomplete and subject to change.For the latest stable version, see the current LangGraph Python or LangGraph JavaScript docs.
StateGraph
reached the maximum number of steps before hitting a stop condition.
This is often due to an infinite loop caused by code like the example below:
Troubleshooting
- If you are not expecting your graph to go through many iterations, you likely have a cycle. Check your logic for infinite loops.
-
If you have a complex graph, you can pass in a higher
recursionLimit
value into yourconfig
object when invoking your graph like this: