Skip to content

How can I change the default recursion limit in a LangGraph agent? I am using langgraph-cli to run the graph #1121

Description

This is the error I am getting after the recursion limit is reached, and I am unable to find documentation at the source mentioned in the error.

langgraph.errors.GraphRecursionError: Recursion limit of 25 reached without hitting a stop condition. You can increase the limit by setting the recursion_limit config key. For troubleshooting, visit: https://python.langchain.com/docs/troubleshooting/errors/GRAPH_RECURSION_LIMIT

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions