From 6a53f414d3c82962551098d8428dd5ef220673bd Mon Sep 17 00:00:00 2001 From: Google Team Member Date: Wed, 18 Feb 2026 00:24:06 -0800 Subject: [PATCH] chore: set a maximum number of rows for BigQuery query results in the sample agent The `BigQueryToolConfig` now sets `max_query_result_rows=50` explicitly to showcase this particular configuration. PiperOrigin-RevId: 871709345 --- contributing/samples/bigquery/agent.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/contributing/samples/bigquery/agent.py b/contributing/samples/bigquery/agent.py index 0402d617..5ff34c7c 100644 --- a/contributing/samples/bigquery/agent.py +++ b/contributing/samples/bigquery/agent.py @@ -38,7 +38,9 @@ BIGQUERY_AGENT_NAME = "adk_sample_bigquery_agent" # tool read-only) or PROTECTED (only allows writes in the anonymous dataset of a # BigQuery session) write mode. tool_config = BigQueryToolConfig( - write_mode=WriteMode.ALLOWED, application_name=BIGQUERY_AGENT_NAME + write_mode=WriteMode.ALLOWED, + application_name=BIGQUERY_AGENT_NAME, + max_query_result_rows=50, ) if CREDENTIALS_TYPE == AuthCredentialTypes.OAUTH2: