feat: allow setting agent/application name for BigQuery tools

This will allow tracking of tool usage per agent/application.

PiperOrigin-RevId: 800607186
This commit is contained in:
Google Team Member
2025-08-28 14:10:01 -07:00
committed by Copybara-Service
parent f4a8df0ba2
commit 11a2ffe35a
9 changed files with 259 additions and 33 deletions
@@ -25,3 +25,12 @@ def test_bigquery_tool_config_experimental_warning():
match="Config defaults may have breaking change in the future.",
):
BigQueryToolConfig()
def test_bigquery_tool_config_invalid_application_name():
"""Test BigQueryToolConfig with invalid application name."""
with pytest.raises(
ValueError,
match="Application name should not contain spaces.",
):
BigQueryToolConfig(application_name="my agent")