Skip to content

Ability to increase langchain recursion limit #253

Description

@dberardo-com

i often hit the limit of 25 recursion depth in langchain.

is it possible to increase this limit in the agent ?

also, i am not sure why i am hitting it, but thats it

Activity

  1. marcelklehr commented on Oct 2, 2026

    @marcelklehr
    Member

    Hi,

    the limit effectively limits how many tool calls the LLM can do in one go. I've submitted a PR that ups it to 256 #245

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions