-
Notifications
You must be signed in to change notification settings - Fork 2k
fix returnDirect attribute default value change false to true #4412
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…ange false to true Signed-off-by: rlagyu0 <01086055223@hanmail.net>
|
same pull request : #3787 |
I think these two PRs don't seem to address the same issue? #3787 aims to resolve the problem where the |
The fundamental issue doesn’t seem likely to be resolved in the 1.1.0 release. |
Regarding the issue of passing the |
This is a different perspective from what was discussed in that issue. If the default is set to false, it will feel more intuitive to users and offer many advantages. If you disagree with this view, please list the advantages of having the default set to true to counter my argument. |
I think there must be some misunderstanding here. The reason I got involved in the current PR discussion is because you said:
; so from the very beginning, I was merely repeating:
I've never actually agreed with or denied whether the default value of |
I misunderstood. It seems that the fundamental solution is still under discussion. |
Yes, you're right. Actually, we are currently discussing two different issues. Prior to #3481, there had already been several issues reporting that the |
|
@rlagyu0 Setting the default value of Since this is the typical flow of client (with tools) -> model interaction, the |
|
@rlagyu0 Closing this as not ready for merge for now as we intend to keep the design to set the returnDirect to |
The default value of the returnDirect attribute in the @tool annotation has been changed to true. Users may not want the model to request the same thing twice, and by default, they expect that the return value of a method annotated with @tool will be returned directly to them. Setting the default of the returnDirect attribute to false would be unintuitive.
Furthermore, the majority of open-source tool creators focus on the tool performing some action, rather than having the return value interpreted differently through multiple models. Since the results can vary greatly depending on the model, it is preferable for the tool’s return value to provide a clear and direct answer to the user.
same issue : #3481