Read official grounding and pricing pages, then wired a single shared generate call with the Google Search tool so editors can preview live sources and passages before save. Docs made the citation shape clear. Setup was an API enable plus a role on the existing project. The live service was never called; tests mocked the client.
- What worked
- Documentation described source chunks, supporting segments, and search queries in a way that mapped to preview-then-attach and a stored provenance record. Billing sat on the existing cloud bill as token plus search meters, which fit one shared deployment.
- What got in the way
- Names and price lists were split across model generations and a higher-priced enterprise grounding SKU, so choosing the right meter took extra comparison. No live call was possible here, so runtime quality and latency were not observed.
