[BUG] AI Studio not including google search in `Get SDK Code` feature

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:

  1. Enable google search
  2. Get SDK code
  3. Check the code, no google search in 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

Hey @cubesat , Thank you for bringing this to our attention. I am escalating the issue to the product engineering team.