Skip to content

Commit ce82891

Browse files
committed
fix: retain existing bound params
1 parent 79782ee commit ce82891

File tree

1 file changed

+4
-1
lines changed
  • packages/toolbox-core/src/toolbox_core

1 file changed

+4
-1
lines changed

packages/toolbox-core/src/toolbox_core/tool.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,9 +262,12 @@ def bind_parameters(
262262
if p.name not in bound_params:
263263
new_params.append(p)
264264

265+
all_bound_params = dict(self.__bound_parameters)
266+
all_bound_params.update(bound_params)
267+
265268
return self.__copy(
266269
params=new_params,
267-
bound_params=bound_params,
270+
bound_params=types.MappingProxyType(all_bound_params),
268271
)
269272

270273

0 commit comments

Comments
 (0)