@@ -103,7 +103,7 @@ async def aload_toolset(
103
103
auth_tokens : Optional [dict [str , Callable [[], str ]]] = None ,
104
104
auth_headers : Optional [dict [str , Callable [[], str ]]] = None ,
105
105
bound_params : dict [str , Union [Any , Callable [[], Any ]]] = {},
106
- strict : bool = True ,
106
+ strict : bool = False ,
107
107
) -> list [AsyncToolboxTool ]:
108
108
"""
109
109
Loads tools from the Toolbox service, optionally filtered by toolset
@@ -118,9 +118,11 @@ async def aload_toolset(
118
118
auth_headers: Deprecated. Use `auth_token_getters` instead.
119
119
bound_params: An optional mapping of parameter names to their
120
120
bound values.
121
- strict: If True, raises a ValueError if any of the given bound
122
- parameters are missing from the schema or require
123
- authentication. If False, only issues a warning.
121
+ strict: If True, raises an error if *any* loaded tool instance fails
122
+ to utilize at least one provided parameter or auth token (if any
123
+ provided). If False (default), raises an error only if a
124
+ user-provided parameter or auth token cannot be applied to *any*
125
+ loaded tool across the set.
124
126
125
127
Returns:
126
128
A list of all tools loaded from the Toolbox.
@@ -170,7 +172,6 @@ def load_tool(
170
172
auth_tokens : Optional [dict [str , Callable [[], str ]]] = None ,
171
173
auth_headers : Optional [dict [str , Callable [[], str ]]] = None ,
172
174
bound_params : dict [str , Union [Any , Callable [[], Any ]]] = {},
173
- strict : bool = True ,
174
175
) -> AsyncToolboxTool :
175
176
raise NotImplementedError ("Synchronous methods not supported by async client." )
176
177
@@ -181,6 +182,6 @@ def load_toolset(
181
182
auth_tokens : Optional [dict [str , Callable [[], str ]]] = None ,
182
183
auth_headers : Optional [dict [str , Callable [[], str ]]] = None ,
183
184
bound_params : dict [str , Union [Any , Callable [[], Any ]]] = {},
184
- strict : bool = True ,
185
+ strict : bool = False ,
185
186
) -> list [AsyncToolboxTool ]:
186
187
raise NotImplementedError ("Synchronous methods not supported by async client." )
0 commit comments