8000 chore: Add experimental decorator to BigQuery tools · devevignesh/adk-python@a19d617 · GitHub
[go: up one dir, main page]

Skip to content

Commit a19d617

Browse files
seanzhougooglecopybara-github
authored andcommitted
chore: Add experimental decorator to BigQuery tools
PiperOrigin-RevId: 771359886
1 parent 8ebf229 commit a19d617

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

src/google/adk/tools/bigquery/bigquery_credentials.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,14 @@
3131
from ...auth.auth_credential import AuthCredentialTypes
3232
from ...auth.auth_credential import OAuth2Auth
3333
from ...auth.auth_tool import AuthConfig
34+
from ...utils.feature_decorator import experimental
3435
from ..tool_context import ToolContext
3536

3637
BIGQUERY_TOKEN_CACHE_KEY = "bigquery_token_cache"
3738
BIGQUERY_DEFAULT_SCOPE = ["https://www.googleapis.com/auth/bigquery"]
3839

3940

41+
@experimental
4042
class BigQueryCredentialsConfig(BaseModel):
4143
"""Configuration for Google API tools. (Experimental)"""
4244

src/google/adk/tools/bigquery/bigquery_tool.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15+
from __future__ import annotations
1516

1617
import inspect
1718
from typing import Any
@@ -21,13 +22,15 @@
2122
from google.oauth2.credentials import Credentials
2223
from typing_extensions import override
2324

25+
from ...utils.feature_decorator import experimental
2426
from ..function_tool import FunctionTool
2527
from ..tool_context import ToolContext
2628
from .bigquery_credentials import BigQueryCredentialsConfig
2729
from .bigquery_credentials import BigQueryCredentialsManager
2830
from .config import BigQueryToolConfig
2931

3032

33+
@experimental
3134
class BigQueryTool(FunctionTool):
3235
"""GoogleApiTool class for tools that call Google APIs.
3336

src/google/adk/tools/bigquery/bigquery_toolset.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,13 @@
2626
from ...tools.base_tool import BaseTool
2727
from ...tools.base_toolset import BaseToolset
2828
from ...tools.base_toolset import ToolPredicate
29+
from ...utils.feature_decorator import experimental
2930
from .bigquery_credentials import BigQueryCredentialsConfig
3031
from .bigquery_tool import BigQueryTool
3132
from .config import BigQueryToolConfig
3233

3334

35+
@experimental
3436
class BigQueryToolset(BaseToolset):
3537
"""BigQuery Toolset contains tools for interacting with BigQuery data and metadata."""
3638

0 commit comments

Comments
 (0)
0