Skip to content

Commit 7ff8d78

Browse files
authored
chore: fix message_integration (#3666)
1 parent 9c54826 commit 7ff8d78

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

camel/toolkits/message_integration.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,10 @@ def register_toolkits(self, toolkit: BaseToolkit) -> BaseToolkit:
170170
for tool in original_tools:
171171
method_name = tool.func.__name__
172172
enhanced_func = self._add_messaging_to_tool(tool.func)
173+
enhanced_func = self._create_bound_method_wrapper(
174+
enhanced_func,
175+
toolkit,
176+
)
173177
enhanced_methods[method_name] = enhanced_func
174178
setattr(toolkit, method_name, enhanced_func)
175179
original_get_tools_method = toolkit.get_tools

0 commit comments

Comments
 (0)