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
This commit is contained in:
Google Team Member
2026-02-18 00:24:06 -08:00
committed by Copybara-Service
parent dbd64207ae
commit 6a53f414d3
+3 -1
View File
@@ -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: