File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
packages/toolbox-core/src/toolbox_core Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ def __init__(
64
64
description: The description of the remote tool.
65
65
params: The args of the tool.
66
66
required_authn_params: A dict of required authenticated parameters to a list
67
- of services that provide values for them.
67
+ of alternative services that can provide values for them.
68
68
auth_service_token_getters: A dict of authService -> token (or callables that
69
69
produce a token)
70
70
bound_params: A mapping of parameter names to bind to specific values or
@@ -288,6 +288,11 @@ def bind_parameters(
288
288
"""
289
289
param_names = set (p .name for p in self .__params )
290
290
for name in bound_params .keys ():
291
+ if name in self .__bound_parameters :
292
+ raise ValueError (
293
+ f"cannot re-bind parameter: parameter '{ name } ' is already bound"
294
+ )
295
+
291
296
if name not in param_names :
292
297
raise Exception (f"unable to bind parameters: no parameter named { name } " )
293
298
You can’t perform that action at this time.
0 commit comments