adk-python icon indicating copy to clipboard operation
adk-python copied to clipboard

Clarify google_search tool billing and terms of service

Open forrestrice opened this issue 1 year ago • 4 comments

Very excited about the possibilities of the google_search tool but there are several things that unclear from the documentation.

  1. Is the google_search tool the same as "Grounding with Google Search?"
  2. If no, how is it billed?
  3. Does using it also have the same requirements to display Google Search Suggestions? Are there more general Terms for using this tool? The docs state:

To use Grounding with Google Search, you have to display Google Search Suggestions

  1. Is it possible to modify the parameters of the tool such as the dynamic retrieval threshold that is available in other apis?

forrestrice avatar Apr 16 '25 05:04 forrestrice

Yes, it's the same one, assuming you meant google_search_tool.py.

This is the built-in tool of Gemini 2+ family.

Jacksunwei avatar Apr 17 '25 01:04 Jacksunwei

For no.4, could you elaborate? Right now, there is no any additional parameters in GoogleSearch tool yet.

Jacksunwei avatar Apr 17 '25 01:04 Jacksunwei

Right, I think i misunderstood the documentation - I didn't realize dynamic threshold was only configurable for the older method.

I think the requirements for displaying suggested queries should be called out in the docs - unfortunately it basically rules out using gemini grounding for my use case (too much work to implement the frontend components in the places I want to use the generated text). Hope that requirement changes someday.

forrestrice avatar Apr 17 '25 03:04 forrestrice

Polong please help to update the doc about google_search with the requirement of displaying search suggestions. https://cloud.google.com/vertex-ai/generative-ai/docs/grounding/grounding-search-suggestions

The UI code (HTML) is returned in the Gemini response as renderedContent. The developer needs to show this HTML in their app according to the policy.

boyangsvl avatar Apr 18 '25 23:04 boyangsvl