@@ -69,6 +69,7 @@ def __init__(
6969 auth_scheme : Optional [AuthScheme ] = None ,
7070 auth_credential : Optional [AuthCredential ] = None ,
7171 tool_filter : Optional [Union [ToolPredicate , List [str ]]] = None ,
72+ tool_name_prefix : Optional [str ] = None ,
7273 ssl_verify : Optional [Union [bool , str , ssl .SSLContext ]] = None ,
7374 ):
7475 """Initializes the OpenAPIToolset.
@@ -104,6 +105,9 @@ def __init__(
104105 ``google.adk.tools.openapi_tool.auth.auth_helpers``
105106 tool_filter: The filter used to filter the tools in the toolset. It can be
106107 either a tool predicate or a list of tool names of the tools to expose.
108+ tool_name_prefix: The prefix to prepend to the names of the tools returned
109+ by the toolset. Useful when multiple OpenAPI specs have tools with
110+ similar names.
107111 ssl_verify: SSL certificate verification option for all tools. Can be:
108112 - None: Use default verification (True)
109113 - True: Verify SSL certificates using system CA
@@ -113,7 +117,7 @@ def __init__(
113117 This is useful for enterprise environments where requests go through
114118 a TLS-intercepting proxy with a custom CA certificate.
115119 """
116- super ().__init__ (tool_filter = tool_filter )
120+ super ().__init__ (tool_filter = tool_filter , tool_name_prefix = tool_name_prefix )
117121 if not spec_dict :
118122 spec_dict = self ._load_spec (spec_str , spec_str_type )
119123 self ._ssl_verify = ssl_verify
0 commit comments