A tool that allows the generative model to connect to Google Search to access and incorporate
up-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 API
or Vertex AI Gemini API (see Service Terms
section within the Service Specific Terms).
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-07-15 UTC."],[],[],null,["GoogleSearch \n\n @available(iOS 15.0, macOS 12.0, tvOS 15.0, watchOS 8.0, *)\n public struct GoogleSearch : Sendable\n\n extension GoogleSearch: Encodable\n\nA tool that allows the generative model to connect to Google Search to access and incorporate\nup-to-date information from the web into its responses. \nImportant\n\nWhen using this feature, you are required to comply with the\n\"Grounding with Google Search\" usage requirements for your chosen API provider:\n[Gemini Developer API](https://ai.google.dev/gemini-api/terms#grounding-with-google-search)\nor Vertex AI Gemini API (see [Service Terms](https://cloud.google.com/terms/service-terms)\nsection within the Service Specific Terms).\n- `\n ``\n ``\n `\n\n [init()](#/s:10FirebaseAI12GoogleSearchVACycfc)`\n ` \n Undocumented \n\n Declaration \n Swift \n\n public init()"]]