How to Yield Response from an agent while executing the tool

Hi Team,

I’m trying to develop a chatbot with agno and flask.

i want to implement a feature that goes like this.

1 : User will ask agent to process a query
2: agent will acknowledge the user saying process has been started
3 :agent will call a tool that will do the processing and send the result to user.

i want to send a response back to the user before executing the tool. But agent will only respond back after tool execution finishes.

So what i should do, so that agent will acknowldge the user and after completion of the tool, agent will respond to the user with the result.

Hi @akhilmstcs
Thanks for reaching out and for using Agno! I’ve looped in the right engineers to help with your question. We usually respond within 24 hours, but if this is urgent, just let us know, and we’ll do our best to prioritize it.
Appreciate your patience—we’ll get back to you soon! :smile:

Hey @akhilmstcs , you can use Agent.run() to get all run events like run started, tool calls etc. Here is a link to it - Agent.run() - Agno

Thanks @anuragphi for the tip. I’ll check that. :grin: