After multiple invocations of the same tool, the returned result is overwritten by the last invocation. #7472

Closed
opened 2026-02-21 18:20:46 -05:00 by yindo · 1 comment
Owner

Originally created by @dysodeng on GitHub (Dec 31, 2024).

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.

When using the same tool for multiple calls, I noticed that the calls are being merged together, and the information from earlier calls is being overwritten by the last call. Since we need to parse the results returned by the tool, the merging prevents effective parsing of the call results. Could we add a switch or a state to control and prevent this merging of results?
image

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 @dysodeng on GitHub (Dec 31, 2024). ### 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. When using the same tool for multiple calls, I noticed that the calls are being merged together, and the information from earlier calls is being overwritten by the last call. Since we need to parse the results returned by the tool, the merging prevents effective parsing of the call results. Could we add a switch or a state to control and prevent this merging of results? <img width="630" alt="image" src="https://github.com/user-attachments/assets/5bd4efb7-1e7e-4fe6-928e-fee75fa8edab" /> ### 2. Additional context or comments _No response_ ### 3. Can you help us with this feature? - [ ] I am interested in contributing to this feature.
yindo added the 💪 enhancement🔨 feat:tools labels 2026-02-21 18:20:46 -05:00
yindo closed this issue 2026-02-21 18:20:46 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Jan 31, 2025):

Hi, @dysodeng. I'm Dosu, and I'm helping the Dify team manage their backlog. I'm marking this issue as stale.

Issue Summary:

  • Multiple invocations of a tool result in merged call outputs.
  • Earlier results are overwritten by the last invocation.
  • This behavior complicates output parsing.
  • Suggestion to implement a switch or state to prevent merging.
  • No additional comments or activity on the issue.

Next Steps:

  • Please confirm if this issue is still relevant to the latest version of the Dify repository by commenting here.
  • If there is no further activity, the issue will be automatically closed in 15 days.

Thank you for your understanding and contribution!

@dosubot[bot] commented on GitHub (Jan 31, 2025): Hi, @dysodeng. I'm [Dosu](https://dosu.dev), and I'm helping the Dify team manage their backlog. I'm marking this issue as stale. **Issue Summary:** - Multiple invocations of a tool result in merged call outputs. - Earlier results are overwritten by the last invocation. - This behavior complicates output parsing. - Suggestion to implement a switch or state to prevent merging. - No additional comments or activity on the issue. **Next Steps:** - Please confirm if this issue is still relevant to the latest version of the Dify repository by commenting here. - If there is no further activity, the issue will be automatically closed in 15 days. Thank you for your understanding and contribution!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#7472