File tree Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -459,6 +459,10 @@ specific tool instance.
459
459
toolbox = ToolboxClient(" http://127.0.0.1:5000" )
460
460
tool = await toolbox.load_tool(" my-tool" )
461
461
462
+ bound_tool = tool.bind_param(" param" , " value" )
463
+
464
+ # OR
465
+
462
466
bound_tool = tool.bind_params({" param" : " value" })
463
467
```
464
468
Original file line number Diff line number Diff line change @@ -152,9 +152,9 @@ def add_auth_token_getters(
152
152
153
153
Raises:
154
154
ValueError: If an auth source has already been registered either to
155
- the tool or to the corresponding client.
156
- """
155
+ the tool or to the corresponding client.
157
156
157
+ """
158
158
new_async_tool = self .__async_tool .add_auth_token_getters (auth_token_getters )
159
159
return ToolboxSyncTool (new_async_tool , self .__loop , self .__thread )
160
160
@@ -175,7 +175,7 @@ def add_auth_token_getter(
175
175
176
176
Raises:
177
177
ValueError: If the auth source has already been registered either to
178
- the tool or to the corresponding client.
178
+ the tool or to the corresponding client.
179
179
180
180
"""
181
181
return self .add_auth_token_getters ({auth_source : get_id_token })
@@ -187,8 +187,8 @@ def bind_params(
187
187
Binds parameters to values or callables that produce values.
188
188
189
189
Args:
190
- bound_params: A mapping of parameter names to values or callables that
191
- produce values.
190
+ bound_params: A mapping of parameter names to values or callables
191
+ that produce values.
192
192
193
193
Returns:
194
194
A new ToolboxSyncTool instance with the specified parameters bound.
@@ -198,7 +198,6 @@ def bind_params(
198
198
tool's definition.
199
199
200
200
"""
201
-
202
201
new_async_tool = self .__async_tool .bind_params (bound_params )
203
202
return ToolboxSyncTool (new_async_tool , self .__loop , self .__thread )
204
203
You can’t perform that action at this time.
0 commit comments