-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Open
Labels
langgraphFor docs changes to LangGraphFor docs changes to LangGraph
Description
Issue with current documentation:
From what I understand from documentation the RemainingSteps is central and applies to all subgraphs as well. https://langchain-ai.github.io/langgraph/how-tos/graph-api/?h=remaining#impose-a-recursion-limit
In my case I have a routing graph which calls two graphs (A & B). Graph B has 4 nodes, one of which is a create_react_agent. All 3 graphs have different states with some shared channels.
I was getting graphrecursionerror so I added remaining_steps: RemainingSteps to all states to check. In Langsmith trace, I see that the subgraph's remaining_steps starts from 0 and from where previous one ended.
Idea or request for content:
The exact usage of remaining steps to control recursion errors from prebuilt create_react_agent or persist state in case of recursion errors.
gauravvgat and roryeckel
Metadata
Metadata
Assignees
Labels
langgraphFor docs changes to LangGraphFor docs changes to LangGraph