Can an agent or teams initiate (or call) a Workflow just like calling a tool?

Hi,

Can an agent or a team initiate or call a Workflow just like it calls a Tool?

If not, do you have any plan to implement this feature?

For example,

analyst_team = Team(
                name = 'financial analyst team',
                team_id = 'financial-analyst-team',
                mode = 'coordinate',
                members = [planner, analyst, writer]
                tools = [tool1, tool2, tool3],
                workflows = [workflow1, workflow2, workflow3])

This feature will be powerful if a team can do an agentic reasoning task and also initiate/call a deterministic workflow with a long-sequence of tasks or a complex task.

In the Playground UI environment, there are 3 executors: agent, team, workflow. This is quite confusing for ordinary users. Esp. it is not practical for users to choose which workflow to do a certain task. This workflow choice had better be made by the agent or the team.

Your insight or a future plan (if any) will be appreciated.

Yang Gul

Hey @yglee.us, 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!

Hi @yglee.us we just merged this feature as a WorkflowToolthat an agent/team can call.
Here’s an example- agno/cookbook/workflows/_06_advanced_concepts/_06_other/workflow_tools.py at main · agno-agi/agno · GitHub

But first you will have to migrate to our 2.0 version, here’s a migration guide- Migrating to Agno v2.0 - Agno

We will release this with 2.0.3in a day or two!
Thanks alot for the feedback