agent functioncall :When make Maximum Iterations to 1 , tool list will not send to llm #141

Closed
opened 2026-02-16 10:18:13 -05:00 by yindo · 1 comment
Owner

Originally created by @lordk911 on GitHub (Mar 28, 2025).

Self Checks

  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues Dify issues & Dify Official Plugins, 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.

Dify version

1.1.1

Plugin version

xorbitsai/inference:0.0.2; agent:0.0.12

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

just set Maximum Iterations to 1

Image

✔️ Error log

there is no tools send to the llm

Image

Originally created by @lordk911 on GitHub (Mar 28, 2025). ### Self Checks - [x] This is only for bug report, if you would like to ask a question, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). - [x] I have searched for existing issues [Dify issues](https://github.com/langgenius/dify/issues) & [Dify Official Plugins](https://github.com/langgenius/dify-official-plugins/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. ### Dify version 1.1.1 ### Plugin version xorbitsai/inference:0.0.2; agent:0.0.12 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce just set Maximum Iterations to 1 ![Image](https://github.com/user-attachments/assets/3f753df0-c7b8-4398-b9e3-d5e5ca2c7f92) ### ✔️ Error log there is no tools send to the llm ![Image](https://github.com/user-attachments/assets/5ab399fe-7710-4169-994b-d3575ca939c2)
yindo added the bug label 2026-02-16 10:18:13 -05:00
yindo closed this issue 2026-02-16 10:18:13 -05:00
Author
Owner

@lordk911 commented on GitHub (Mar 28, 2025):

@Nov1c444 will you please take a look this?
As the code show , maximum_iterations could not be 1 ?

https://github.com/langgenius/dify-official-plugins/blob/86a9347985ea6a87c29f79e1b822cf49a075a18e/agent-strategies/cot_agent/strategies/function_calling.py#L99C1-L101C43

            if iteration_step == max_iteration_steps:
                # the last iteration, remove all tools
                prompt_messages_tools = []
@lordk911 commented on GitHub (Mar 28, 2025): @Nov1c444 will you please take a look this? As the code show , maximum_iterations could not be 1 ? https://github.com/langgenius/dify-official-plugins/blob/86a9347985ea6a87c29f79e1b822cf49a075a18e/agent-strategies/cot_agent/strategies/function_calling.py#L99C1-L101C43 ``` if iteration_step == max_iteration_steps: # the last iteration, remove all tools prompt_messages_tools = [] ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-official-plugins#141