Skip to content

Commit ab9ae0f

Browse files
google-genai-botcopybara-github
authored andcommitted
ADK changes
PiperOrigin-RevId: 889992570
1 parent 08be442 commit ab9ae0f

20 files changed

+30
-97
lines changed

src/google/adk/integrations/bigquery/__init__.py

Lines changed: 0 additions & 49 deletions
This file was deleted.

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

Lines changed: 6 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -27,23 +27,10 @@
2727
execute_sql can't arbitrarily mutate existing data.
2828
"""
2929

30-
import importlib
31-
import sys
30+
from .bigquery_credentials import BigQueryCredentialsConfig
31+
from .bigquery_toolset import BigQueryToolset
3232

33-
# Redirect this module to integrations/bigquery for backward compatibility.
34-
_TARGET = "google.adk.integrations.bigquery"
35-
36-
try:
37-
_mod = importlib.import_module(_TARGET)
38-
sys.modules[__name__] = _mod
39-
except ImportError:
40-
# Fallback for static analysis or if import fails during transition
41-
from google.adk.integrations.bigquery import BigQueryCredentialsConfig
42-
from google.adk.integrations.bigquery import BigQueryToolset
43-
from google.adk.integrations.bigquery import get_bigquery_skill
44-
45-
__all__ = [
46-
"BigQueryToolset",
47-
"BigQueryCredentialsConfig",
48-
"get_bigquery_skill",
49-
]
33+
__all__ = [
34+
"BigQueryToolset",
35+
"BigQueryCredentialsConfig",
36+
]

src/google/adk/integrations/bigquery/bigquery_credentials.py renamed to src/google/adk/tools/bigquery/bigquery_credentials.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
from ...features import experimental
1818
from ...features import FeatureName
19-
from ...tools._google_credentials import BaseGoogleCredentialsConfig
19+
from .._google_credentials import BaseGoogleCredentialsConfig
2020

2121
BIGQUERY_TOKEN_CACHE_KEY = "bigquery_token_cache"
2222
BIGQUERY_SCOPES = [
File renamed without changes.
File renamed without changes.
File renamed without changes.

src/google/adk/integrations/bigquery/data_insights_tool.py renamed to src/google/adk/tools/bigquery/data_insights_tool.py

File renamed without changes.
File renamed without changes.

src/google/adk/integrations/bigquery/query_tool.py renamed to src/google/adk/tools/bigquery/query_tool.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
from google.cloud import bigquery
2626

2727
from . import client
28-
from ...tools.tool_context import ToolContext
28+
from ..tool_context import ToolContext
2929
from .config import BigQueryToolConfig
3030
from .config import WriteMode
3131

File renamed without changes.

0 commit comments

Comments
 (0)