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 32
32
from .settings import SpannerToolSettings
33
33
from .spanner_credentials import SpannerCredentialsConfig
34
34
35
+ DEFAULT_SPANNER_TOOL_NAME_PREFIX = "spanner"
36
+
35
37
36
38
@experimental
37
39
class 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
+ """
39
50
40
51
def __init__ (
41
52
self ,
@@ -44,7 +55,10 @@ def __init__(
44
55
credentials_config : Optional [SpannerCredentialsConfig ] = None ,
45
56
spanner_tool_settings : Optional [SpannerToolSettings ] = None ,
46
57
):
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
+ )
48
62
self ._credentials_config = credentials_config
49
63
self ._tool_settings = (
50
64
spanner_tool_settings
You can’t perform that action at this time.
0 commit comments