i have a simple agent that makes use of the web-search. However: Sometimes the response takes 50s+ and the reason for it seems that the agent is doing a search over and over again.
Taking a look at the trace shows that the web-search in this case is multiple times, instead of just once.
I even put it into the prompt with “Use the WebSearchTool only ONCE.”
But it’s still sometimes running multiple times.
I am not sure if it’s a bug, or if I am maybe doing anything wrong here - Maybe someone has an idea?