mirror of
https://github.com/encounter/adk-python.git
synced 2026-07-09 18:19:28 -07:00
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:
committed by
Copybara-Service
parent
f4a8df0ba2
commit
11a2ffe35a
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user