What changed
Google made BigQuery AI.AGG generally available and added custom structured outputs plus token-based cost controls. The function uses Gemini to aggregate large groups of text or multimodal rows directly in SQL without fitting the full group into one model context.
Why it matters
Teams can move semantic aggregation into auditable SQL and downstream typed pipelines instead of maintaining a separate prompt-and-batch service, while setting a more explicit token budget.
What to do
Run AI.AGG on a sampled table with a strict output schema, compare it with a deterministic baseline and human labels, inspect malformed or missing fields, then set a token budget and estimate full-table cost.
Caveat
GA establishes support, not correctness. Aggregated outputs inherit model error and data-access risks, token budgets can trade quality for cost, and large-table results need sampling and drift checks.