Multiple handovers of team leader in route mode

Hi,

I observe my Team leader agent does handover to multiple sub agents at the same time while in ‘route’ mode.

According to the documemntation:

  1. The team receives a user query

  2. A Team Leader analyzes the query to determine which team member has the right expertise

  3. The query is forwarded to the selected team member

  4. The response from the team member is returned directly to the user

I would not expect this to happen.

Is this a bug? is there a way to prevent this? How even is the response of the agent directly returned when there are now more responses?

Thanks!

Hi @thomas, thanks for reaching out and supporting Agno. I’ve shared this with the team, we’re working through all requests one by one and will get back to you soon.If it’s urgent, please let us know. We appreciate your patience!

thats the flow for route mode. main agent transfer task to team member and the team member output is final output.
if you are in “coordinate“ mode then main agent transfer task to team member as it does in route but the team members output is gone back to main agent and then main agent analyzes the members output and provide a final output to user.

Also in route mode the leader can transfer to multiple sub agents. Also, he can decide to respond directly both of which I find unexpected from the documentation. So i would say either the docs need to be adjusted or the behaviour needs to change. @Prajwal

Hi @thomas , you are right. The member response is returned from the Team Lead but its generated by the member.

So, we will:

  • Update the docs to highlight the true pattern
  • Add a flag that will enable the member agent to respond directly
1 Like