Skip to content

[langgraph]: need better docs for RemainingSteps managed value #475

@gauravvgat

Description

@gauravvgat

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    langgraphFor docs changes to LangGraph

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions