File tree Expand file tree Collapse file tree 1 file changed +16
-2
lines changed
src/google/adk/tools/spanner Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Original file line number Diff line number Diff line change 3232from .settings import SpannerToolSettings
3333from .spanner_credentials import SpannerCredentialsConfig
3434
35+ DEFAULT_SPANNER_TOOL_NAME_PREFIX = "spanner"
36+
3537
3638@experimental
3739class SpannerToolset (BaseToolset ):
38- """Spanner Toolset contains tools for interacting with Spanner data, database and table information."""
40+ """Spanner Toolset contains tools for interacting with Spanner data, database and table information.
41+
42+ The tool names are:
43+ - spanner_list_table_names
44+ - spanner_list_table_indexes
45+ - spanner_list_table_index_columns
46+ - spanner_list_named_schemas
47+ - spanner_get_table_schema
48+ - spanner_execute_sql
49+ """
3950
4051 def __init__ (
4152 self ,
@@ -44,7 +55,10 @@ def __init__(
4455 credentials_config : Optional [SpannerCredentialsConfig ] = None ,
4556 spanner_tool_settings : Optional [SpannerToolSettings ] = None ,
4657 ):
47- super ().__init__ (tool_filter = tool_filter )
58+ super ().__init__ (
59+ tool_filter = tool_filter ,
60+ tool_name_prefix = DEFAULT_SPANNER_TOOL_NAME_PREFIX ,
61+ )
4862 self ._credentials_config = credentials_config
4963 self ._tool_settings = (
5064 spanner_tool_settings
You can’t perform that action at this time.
0 commit comments