File tree Expand file tree Collapse file tree 3 files changed +7
-0
lines changed
src/google/adk/tools/bigquery Expand file tree Collapse file tree 3 files changed +7
-0
lines changed Original file line number Diff line number Diff line change 31
31
from ...auth .auth_credential import AuthCredentialTypes
32
32
from ...auth .auth_credential import OAuth2Auth
33
33
from ...auth .auth_tool import AuthConfig
34
+ from ...utils .feature_decorator import experimental
34
35
from ..tool_context import ToolContext
35
36
36
37
BIGQUERY_TOKEN_CACHE_KEY = "bigquery_token_cache"
37
38
BIGQUERY_DEFAULT_SCOPE = ["https://www.googleapis.com/auth/bigquery" ]
38
39
39
40
41
+ @experimental
40
42
class BigQueryCredentialsConfig (BaseModel ):
41
43
"""Configuration for Google API tools. (Experimental)"""
42
44
Original file line number Diff line number Diff line change 12
12
# See the License for the specific language governing permissions and
13
13
# limitations under the License.
14
14
15
+ from __future__ import annotations
15
16
16
17
import inspect
17
18
from typing import Any
21
22
from google .oauth2 .credentials import Credentials
22
23
from typing_extensions import override
23
24
25
+ from ...utils .feature_decorator import experimental
24
26
from ..function_tool import FunctionTool
25
27
from ..tool_context import ToolContext
26
28
from .bigquery_credentials import BigQueryCredentialsConfig
27
29
from .bigquery_credentials import BigQueryCredentialsManager
28
30
from .config import BigQueryToolConfig
29
31
30
32
33
+ @experimental
31
34
class BigQueryTool (FunctionTool ):
32
35
"""GoogleApiTool class for tools that call Google APIs.
33
36
Original file line number Diff line number Diff line change 26
26
from ...tools .base_tool import BaseTool
27
27
from ...tools .base_toolset import BaseToolset
28
28
from ...tools .base_toolset import ToolPredicate
29
+ from ...utils .feature_decorator import experimental
29
30
from .bigquery_credentials import BigQueryCredentialsConfig
30
31
from .bigquery_tool import BigQueryTool
31
32
from .config import BigQueryToolConfig
32
33
33
34
35
+ @experimental
34
36
class BigQueryToolset (BaseToolset ):
35
37
"""BigQuery Toolset contains tools for interacting with BigQuery data and metadata."""
36
38
You can’t perform that action at this time.
0 commit comments