Can not get consistent hand off to user and have agent respond with message prior to tool call #4886
Replies: 1 comment
-
You can also tune the handoff by customizing the hand off tool (its description, name, returned message) by using
I believe for approval of running the tool, it should not depend on the agent, rather, it should be built into the tool itself, and have the tool returns a well-formed error message if the user rejects it. It is a general pattern that we may incorporate into the
This is a good idea. Have you tried providing some in-context learning examples in the system message, or through the I have created #4895 and #4894 to track these two features. We can continue relevant discussion for these issues there. |
Beta Was this translation helpful? Give feedback.
-
I have been at this for only two months, so still learning and lots more to learn. What I ran into might be just lack of experience, so want to ask for feedback and maybe to be steered into right direction.
I have a fairly simple multi-agent swarm setup using autogen 0.4.0.dev13
Handoff to schema expert is great, even with follow up questions or adjustments to task. Handig off to user is hit or miss, and I suspect maybe it is the prompt I have (snippet below):
There are instances when LLM is saying that it wants user to confirm, but handoff is not happening and query executes. When more information is needed, user handoff is mostly consisent and hands off to user, but the approval/confirmation for running query is not.
Second thing I am facing is not being able to get LLM to send message before calling tool. Data analyst agent will always start with tool call to transfer to schema expert if question/task involves database schema, and once it receives schema it layout the plan and steps it will take next. Out of frustration I added first line but it made no difference.
What I would like it to be is state that it needs schema and it will hand off this request to schema expert.
OpenAI Assistant, despite not being multi-agent, does this kind of nicely by sending a message that it will use a tool to complete "such and such task".
Other than that, it has been a great experience learning autogen 0.2 and now 0.4. Putting things like this together and watch it work is quite something. I suspect in next few months Semantic Kernel will be on my radar.
Edit: Oups, meant to include relevant portions of code
Beta Was this translation helpful? Give feedback.
All reactions