From 10cf37749417856e394e62896231e41b13420f18 Mon Sep 17 00:00:00 2001 From: Google Team Member Date: Wed, 17 Sep 2025 16:52:15 -0700 Subject: [PATCH] feat: Make the bigquery sample agent run with ADC out-of-the-box Right now the bigquery sample agent is configured to run with OAuth, which requires some set up. This change makes it more readily usable, both locally and in AgentEngine, as Application Default Credentials (ADC) is easier to set up, and often local and AgentEngine environment already have it set up. PiperOrigin-RevId: 808315879 --- contributing/samples/bigquery/agent.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/contributing/samples/bigquery/agent.py b/contributing/samples/bigquery/agent.py index 1b8e4d9c..8096fde6 100644 --- a/contributing/samples/bigquery/agent.py +++ b/contributing/samples/bigquery/agent.py @@ -22,8 +22,11 @@ from google.adk.tools.bigquery.config import BigQueryToolConfig from google.adk.tools.bigquery.config import WriteMode import google.auth -# Define an appropriate credential type -CREDENTIALS_TYPE = AuthCredentialTypes.OAUTH2 +# Define the desired credential type. +# By default use Application Default Credentials (ADC) from the local +# environment, which can be set up by following +# https://cloud.google.com/docs/authentication/provide-credentials-adc. +CREDENTIALS_TYPE = None # Define an appropriate application name BIGQUERY_AGENT_NAME = "adk_sample_bigquery_agent"