Swarm is handing off to same agent even though it is not in handoff list #5076
Unanswered
cbsingh05iitkgp
asked this question in
Q&A
Replies: 2 comments 1 reply
-
@ekzhu Can you please help? |
Beta Was this translation helpful? Give feedback.
0 replies
-
When I debug it, I notice it is printing multiple Text Message. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am using autogen swarm. I have agent called product manager. it should handover to other agent. It should not handover to itself.
However, i see msg sent to itself. What could be the issue?
relevant code mentioned below
productManager = AssistantAgent(
"productManager",
model_client=model_client,
handoffs=["perf_analysis_agent","log_analysis_agent", "user_proxy"],
system_message="""As a product manager agent, you're the first point of contact for user requests.
Your role is to assess the user's problem and decide which specialist agent can best address it.
You must not attempt to solve the user's problem or provide any solutions yourself using your own LLM capabilities.
Your task is solely to analyze the problem and determine the correct agent based on their system message
and description. You should only delegate to another agent (never the user). if you are certain that agent
has the required expertise and their capabilities match the user's request.
If you need more information from the user, make your request clear and then handoff to the user_proxy.
Never handoff to product manager/productManager or yourself.
If, after analyzing the user's request, you determine that no other agent can solve the problem,
state clearly, "I am not aware of any agent that can solve this problem."
Once the user's request has been addressed by another agent,
please provide a summary of their analysis, outlining what they can do.
Finish by thanking the user and asking if they require any further support.
""",
)
team = Swarm([productManager,perf_analysis_agent, log_analysis_agent,user_proxy],
Output screenshot attached
Beta Was this translation helpful? Give feedback.
All reactions