Is it possible to change the maximum number of iterations for the agent through an environment variable? #13414

Closed
opened 2026-02-21 19:12:04 -05:00 by yindo · 1 comment
Owner

Originally created by @Moiyu1998 on GitHub (Apr 27, 2025).

Self Checks

  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template :) and fill in all the required fields.

1. Is this request related to a challenge you're experiencing? Tell me about your story.

Image

As shown in the image above, would it be possible to add an environment variable to modify the maximum number of iterations in the agent settings? Sometimes, the default value of 5 is not sufficient.

2. Additional context or comments

No response

3. Can you help us with this feature?

  • I am interested in contributing to this feature.
Originally created by @Moiyu1998 on GitHub (Apr 27, 2025). ### Self Checks - [x] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [x] I confirm that I am using English to submit this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [x] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:) - [x] Please do not modify this template :) and fill in all the required fields. ### 1. Is this request related to a challenge you're experiencing? Tell me about your story. ![Image](https://github.com/user-attachments/assets/20a19b7f-273a-4c7f-8409-1f18ef261563) As shown in the image above, would it be possible to add an environment variable to modify the maximum number of iterations in the agent settings? Sometimes, the default value of 5 is not sufficient. ### 2. Additional context or comments _No response_ ### 3. Can you help us with this feature? - [ ] I am interested in contributing to this feature.
yindo closed this issue 2026-02-21 19:12:04 -05:00
Author
Owner

@crazywoola commented on GitHub (Apr 27, 2025):

I am looking into it, please search the existing issues first.

@crazywoola commented on GitHub (Apr 27, 2025): I am looking into it, please search the existing issues first.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#13414