dify icon indicating copy to clipboard operation
dify copied to clipboard

Let the Agent Node do not use LLM to generate final output, only return tools' results is better

Open tankgit opened this issue 7 months ago • 1 comments

Self Checks

  • [x] I have searched for existing issues search for existing issues, including closed ones.
  • [x] I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [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.

Each time when calling agent node, it would always use LLM as the last round to generate final output (unless we set only 1 round is allowed), it may cause too much time waiting, if the agent node could only output the mid-results produced only by tools, it may save lots of time and be more flexible.

2. Additional context or comments

No response

3. Can you help us with this feature?

  • [ ] I am interested in contributing to this feature.

tankgit avatar May 13 '25 06:05 tankgit

Really need!

jhrcc avatar May 21 '25 00:05 jhrcc

Hi, @tankgit. I'm Dosu (https://dosu.dev), and I'm helping the Dify team manage their backlog and am marking this issue as stale.

Issue Summary:

  • You proposed modifying the agent node to bypass the LLM for final output, returning only intermediate tool results.
  • This change aims to reduce wait times and increase flexibility in output handling.
  • Maintainer jhrcc expressed strong support, highlighting the feature's importance.
  • No further updates or implementation details have been shared since the initial discussion.

Next Steps:

  • Please let me know if this feature is still relevant to the latest version of Dify by commenting on this issue.
  • If I don’t hear back within 15 days, the issue will be automatically closed.

Thank you for your understanding and contribution!

dosubot[bot] avatar Aug 27 '25 16:08 dosubot[bot]