Does agon’s agent have a mechanism that can call itself in a loop
Hey @yu-qin
Thank you for reaching out and supporting Agno
We dont have this at moment. May I ask, why do you need this?
Does agon have a mechanism for looping and calling the agent itself? Because the loop mechanism will be used in the following scenarios: Suppose there is a tool whose function is to obtain the budget name from the pg library, and there will be multiple budget names. Then, the agent needs to be called to generate the corresponding budget report based on the obtained budget name. A corresponding report should be generated for each budget name. Therefore, the agent needs to run the agent in a loop based on multiple results of the previous agent to generate reports for each budget name.
Does agon have a mechanism for looping and calling the agent itself? Because the loop mechanism will be used in the following scenarios: Suppose there is a tool whose function is to obtain the budget name from the pg library, and there will be multiple budget names. Then, the agent needs to be called to generate the corresponding budget report based on the obtained budget name. A corresponding report should be generated for each budget name. Therefore, the agent needs to run the agent in a loop based on multiple results of the previous agent to generate reports for each budget name.
Hey @yu-qin, Thank you for your question. Tagging our engineer @ayush to help you with your question
Hey @yu-qin, this use case appears to be a workflow scenario where we define conditions for agents.
Docs: What are Workflows? - Agno
Example: Async Hacker News Reporter - Agno
agno/cookbook/workflows at main · agno-agi/agno · GitHub
Just a heads-up, Workflows 2.0 will be released soon and it includes dedicated loop support.
thanks
hey @yu-qin please checkout workflows v2 (still in beta though) : Loop Steps Workflow - Agno
What are Workflows? - Agno