@@ -62,7 +62,7 @@ def __init__(
6262 bound_params: A mapping of parameter names to their bound
6363 values.
6464 strict: If True, raises a ValueError if any of the given bound
65- parameters are missing from the schema or require
65+ parameters is missing from the schema or requires
6666 authentication. If False, only issues a warning.
6767 """
6868
@@ -260,7 +260,7 @@ def __create_copy(
260260 bound values or functions to retrieve the values. These params
261261 will be merged with the existing bound params.
262262 strict: If True, raises a ValueError if any of the given bound
263- parameters are missing from the schema or require
263+ parameters is missing from the schema or requires
264264 authentication. If False, only issues a warning.
265265
266266 Returns:
@@ -297,16 +297,18 @@ def add_auth_tokens(
297297 auth_tokens: A dictionary of authentication source names to the
298298 functions that return corresponding ID token.
299299 strict: If True, a ValueError is raised if any of the provided auth
300- tokens are already bound. If False, only a warning is issued.
300+ parameters is already bound. If False, only a warning is issued.
301301
302302 Returns:
303303 A new AsyncToolboxTool instance that is a deep copy of the current
304304 instance, with added auth tokens.
305305
306306 Raises:
307- ValueError: If the provided auth tokens are already registered.
308- ValueError: If the provided auth tokens are already bound and strict
309- is True.
307+ ValueError: If any of the provided auth parameters is already
308+ registered.
309+ ValueError: If any of the provided auth parameters is already bound
310+ and strict is True.
311+
310312 """
311313
312314 # Check if the authentication source is already registered.
@@ -332,17 +334,17 @@ def add_auth_token(
332334 Args:
333335 auth_source: The name of the authentication source.
334336 get_id_token: A function that returns the ID token.
335- strict: If True, a ValueError is raised if any of the provided auth
336- token is already bound. If False, only a warning is issued.
337+ strict: If True, a ValueError is raised if the provided auth
338+ parameter is already bound. If False, only a warning is issued.
337339
338340 Returns:
339341 A new ToolboxTool instance that is a deep copy of the current
340342 instance, with added auth token.
341343
342344 Raises:
343- ValueError: If the provided auth token is already registered.
344- ValueError: If the provided auth token is already bound and strict
345- is True.
345+ ValueError: If the provided auth parameter is already registered.
346+ ValueError: If the provided auth parameter is already bound and
347+ strict is True.
346348 """
347349 return self .add_auth_tokens ({auth_source : get_id_token }, strict = strict )
348350
@@ -359,17 +361,18 @@ def bind_params(
359361 bound_params: A dictionary of the bound parameter name to the
360362 value or function of the bound value.
361363 strict: If True, a ValueError is raised if any of the provided bound
362- params are not defined in the tool's schema, or require
364+ params is not defined in the tool's schema, or requires
363365 authentication. If False, only a warning is issued.
364366
365367 Returns:
366368 A new AsyncToolboxTool instance that is a deep copy of the current
367369 instance, with added bound params.
368370
369371 Raises:
370- ValueError: If the provided bound params are already bound.
371- ValueError: if the provided bound params are not defined in the tool's schema, or require
372- authentication, and strict is True.
372+ ValueError: If any of the provided bound params is already bound.
373+ ValueError: if any of the provided bound params is not defined in
374+ the tool's schema, or requires authentication, and strict is
375+ True.
373376 """
374377
375378 # Check if the parameter is already bound.
@@ -399,9 +402,9 @@ def bind_param(
399402 param_name: The name of the bound parameter.
400403 param_value: The value of the bound parameter, or a callable that
401404 returns the value.
402- strict: If True, a ValueError is raised if any of the provided bound
403- params is not defined in the tool's schema, or requires
404- authentication. If False, only a warning is issued.
405+ strict: If True, a ValueError is raised if the provided bound param
406+ is not defined in the tool's schema, or requires authentication.
407+ If False, only a warning is issued.
405408
406409 Returns:
407410 A new ToolboxTool instance that is a deep copy of the current
0 commit comments