FirebaseAILogic Framework Reference Stay organized with collections Save and categorize content based on your preferences.
GoogleSearch
@available(iOS15.0,macOS12.0,tvOS15.0,watchOS8.0,*)publicstructGoogleSearch:SendableextensionGoogleSearch:EncodableA tool that allows the generative model to connect to Google Search to access and incorporateup-to-date information from the web into its responses.
Important
When using this feature, you are required to comply with the“Grounding with Google Search” usage requirements for your chosen API provider:Gemini Developer APIor Vertex AI Gemini API (seeService Termssection within the Service Specific Terms).
Undocumented
Declaration
Swift
publicinit()
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-10-28 UTC.