Issue:
With Google Search enabled, the SDK code does not include it in the output, causing confusion on whether I’m getting the correct result from search. Turns out the code provided was not complete.
Reproduce steps:
- Enable google search
- Get SDK code
- Check the code, no
google searchin the code
It should include something similar to the following
google_search_tool = Tool(google_search=GoogleSearch())
generate_content_config = types.GenerateContentConfig(
thinking_config=types.ThinkingConfig(
thinking_budget=-1,
),
response_mime_type="text/plain",
tools=[google_search_tool],
)
Hope it can be fixed soon