How do I control the tool-calling in Autogen? #4449
Unanswered
SrijitaRoy913
asked this question in
Q&A
Replies: 2 comments 8 replies
-
There is currently no easy way to achieve this in v0.2. For deterministic tool calls, what's the scenario? Do you require another inference on the tool call result or just return the result of the tool call directly. |
Beta Was this translation helpful? Give feedback.
8 replies
-
Try this aproach https://github.com/[ranga-tec/Autogen-dynamic-functions](https://github.com/ranga-tec/Autogen-dynamic-functions) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am working on a multi-agent framework, and one of the agents calls a tool to fetch the schema of tables. The agent ends up suggesting tool calls multiple times simultaneously instead of handling it in one parameter.
This is a sample of the output:
first_assistant (to User):
***** Suggested tool call (call_qQoQXF1VY1MAWzfTTvSx1CKs): fetch_relevant_ddl *****
Arguments:
{"table_list": ["products"]}
***** Suggested tool call (call_DDDrgYA5DwUya0IDBWbcKZ5w): fetch_relevant_ddl *****
Arguments:
{"table_list": ["orders"]}
However, it will be better if the tool-calling were to happen just once, like this:
first_assistant (to User):
***** Suggested tool call (call_qQoQXF1VY1MAWzfTTvSx1CKs): fetch_relevant_ddl *****
Arguments:
{"table_list": ["products", "orders"]}
Is there any way to make the calling deterministic other than telling it through the prompt? Are there any parameters on configuration that needs to be enabled while defining the tool?
Beta Was this translation helpful? Give feedback.
All reactions