I want that the Agent should never stop iterating and keep using its tools

I am working on agent to agent protocols and want that the agent should never stop executing and keep using tools and communicating with each other tell me a way so that crew ai agent will never Complete its task and stop running

Your best best is to use a Flow in a loop that never completes. There you can have your agent executing the tools.

2 Likes

Might also be useful to keep an eye on it.. Constantly running tools burn $$$

Max wrote a really cool piece here How do I see actual request and response for Tools used during Tracing - #4 by Max_Moura

1 Like

Do you know of any github repositories or have any examples of this?
I have set up a flow that loops -7 times (or any number you want)
And the first flow run the crew writes a good output report, but after that, the crews stop outputting to file. If I set the output to file in the crew.py in each task the output doesnt change.