Hi developers! Lately, I’ve realized it’s necessary to limit the number of search queries performed by ‘Grounding with Google Search.’ I’ve been trying to find a way to do this to reduce billing costs from irrelevant searches, but I haven’t had any luck so far. Is there an existing mechanism or configuration to achieve this?
Hello @Bmcneko ,
One mechanism you can try is instructing the prompt to limit search queries. However, this may come at the cost of accuracy for niche topics or less widely known information.
Hi Sai!
I used this snippet from the documentation “You have a limited action budget of 5 tool calls. Use them efficiently” ![]()