Agent testing Use BigQuery with an AI agent
Before the agent changes application logic, have it create local BigQuery state, read it back with the project SDK, and note which feature the check covered. That first local call catches accidental production routing and needs no GCP account, service-account key, or billing project.
Use LocalCloud to test BigQuery code locally. Read https://local.cloud/ai/agents.md and the BigQuery docs, set BIGQUERY_EMULATOR_HOST for localhost, create a local dataset/table, insert sample rows, run a representative query, and call out any unsupported SQL features instead of using real BigQuery.
Production endpoints, auth, IAM, quotas, regional behavior, and final release validation still need the target Google Cloud project.
Agent resources has more prompts and the AGENTS.md template.