[GH-ISSUE #76] The js version of langchain doesn't set config with recursion_limit while python version does. #22

Closed
opened 2026-02-16 06:16:51 -05:00 by yindo · 2 comments
Owner
Originally created by @hank619 on GitHub (Dec 9, 2025). Original GitHub issue: https://github.com/langchain-ai/deepagentsjs/issues/76 ## JS version https://github.com/langchain-ai/deepagentsjs/blob/5cb547e31697bce1216eefd2ebc5ece0bb0a1f5a/src/agent.ts#L176C1-L177C1 <img width="602" height="241" alt="Image" src="https://github.com/user-attachments/assets/83d13cd7-49a0-4e2e-a598-d2d585b82638" /> ## Python version https://github.com/langchain-ai/deepagents/blob/6a9074f58b4dd7b0302749b84b87f6537d15c4b6/libs/deepagents/deepagents/graph.py#L149 <img width="862" height="287" alt="Image" src="https://github.com/user-attachments/assets/de2e1763-71db-4629-9858-f4ef4da5eff4" />
yindo closed this issue 2026-02-16 06:16:51 -05:00
Author
Owner

@christian-bromann commented on GitHub (Jan 10, 2026):

Thanks for raising this issue. We have an issue tracked in langchain-ai/langchainjs to enable this type of feature and it is on my shortlist of things to do.

@christian-bromann commented on GitHub (Jan 10, 2026): Thanks for raising this issue. We have an issue tracked in `langchain-ai/langchainjs` to enable this type of feature and it is on my shortlist of things to do.
Author
Owner

@DavidGOrtega commented on GitHub (Feb 2, 2026):

I discovered this bug also the only way to overcome it until a patch comes is setting it with stream or generate.

await agent.stream(
    {
      messages: [
        {
          role: 'user',
          content: `Do your stuff`,
        },
      ],
    },
    { recursionLimit: 200 },
  );
@DavidGOrtega commented on GitHub (Feb 2, 2026): I discovered this bug also the only way to overcome it until a patch comes is setting it with stream or generate. ```js await agent.stream( { messages: [ { role: 'user', content: `Do your stuff`, }, ], }, { recursionLimit: 200 }, ); ```
yindo changed title from The js version of langchain doesn't set config with recursion_limit while python version does. to [GH-ISSUE #76] The js version of langchain doesn't set config with recursion_limit while python version does. 2026-06-05 17:21:01 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/deepagentsjs#22