-
Notifications
You must be signed in to change notification settings - Fork 846
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
Handling submitting tool output back to the agent #880
Comments
Yeah! I also want to see this in SuperAgent, execute actions is amazing but information should flow back to prompt to be use. If i'm not confuse, it's possible using workflows, but i think should be possible just defining tool and return value from there ( in terms of javascript/typescript ) |
I agree with you. I will add a way for this. |
I was wondering about how to do it and i reach 2 thoughts:
Tips about it: Check that part of Dify, it's most similar that i could find. What did you think about this approach @homanp ? and you @lynchian ? |
So you wan to add openapi spec tool calling? Sure we can do that. Would you be willing to make a contribution here? Also that wouldn't really solve the problem for this usecase. But I have a solution for that. |
For a direct example of implementation, this is how OpenAI Assistants do it : |
@elisalimli let's implement this. |
We don't think this would really work with workflows that has multiple agents. Let's say a workflow has:
If we run this workflow, and agent 2 decides to call the given custom function, what we will do here? We can not move on to the next agent or stop responding. Because if we stop, we will lost the agent 1's response. Nevertheless, we do want to support this feature. But for /agents endpoint only. @lynchian @joaomirandas What are your takes on this? |
🔖 Feature description
When a function is called by an agent, the response needs to be submitted to the agent in another invocation
This creates problems in a workflow which automatically executes the invocation of the next agent as the next step
Handling function calls to submit the tool output back to the agent without needing another invocation will solve the issue
Acknowledgements
The text was updated successfully, but these errors were encountered: