Multi model agent transfer task

Is multi model task transfer possible using agno? Like suppose I have 3 agents and all 3 agents are part of agent_team, and I give instructions ‘once agent 1 task is complete transfer task to agent 2 for further task, then agent 2 after complete it’s task should transfer to agent 3. Just for your information transfer flow should be “agent1 → agent2 → agent3. All the agents should work in sync because of dependency work. Would it’s possible using Team or workflow?

Hi @Mausam121

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!

Hello Monali,
Good Day,

Thank you for your response.
Is there any time line for my query?

Thanks ,
Mausam

Hi @Mausam121

There are a few ways you can tackle this problem.

  1. Take a look at workflows. You can set it up and then code your transfers. Advice you to also use response models for your agent outputs. This will make things more predictable.
    So agent 1 response → pass to agent 2 using workflow. Blog Post Generator - Agno

  2. You can use an Agent Team in coordinate mode. The team leader agent can be instructed to pass the information from one agent to the next.
    News Agency Team - Agno

It all depends on what type of data you want to transfer between agents. If the data is highly structured, you can try a workflow first, otherwise go for a Team approach. Let us know how it goes and if you run into any issues!

Hello Willem,
Good day,

Thank you for sharing the information and I’m also following same approach did in blog post generator but when ever I pass instruction to transfer it’s not working properly neither Teams and Workflow. I have provided structured and clear instructions but it’s always fail while transferring from one agent to another.

For example let me give you raw idea about instructions -
Supposed we have two agents (health agent and General agent)
Instructions [
“- you are AI agent that can assist users with Health Insurance queries.”,
“-Determine the type of health insurance user looking for (individual or family) “,
“- Gather user details based on insurance type.”,
“- Determine if user likes to buy the policy, If YES transfer to General Agent.”
]
Agent Di’s not follow this instructions after gathering user information ideally it should transfer to general but it again ask what type of insurance you are looking for.

Even in instructions I pass addition instruction as Do Not ask again if user already provided details but still it working in loop and not transferring to next agent.

Do you have any notes on this?

Hi @Mausam121

Mind sharing a code snippet so I can see see where it is going wrong?