|
Fix user tool execute() signature to accept ctx keyword argument
The tool_executor always passes ctx=ctx when calling tool.execute(), but _try_module_level in loader.py created user tools with _execute(self, params) only. This caused: Error: _execute() got an unexpected keyword argument 'ctx' when calling get_current_datetime and any other module-level user tool. - Add ctx=None parameter to the generated _execute wrapper - Preserves backward compatibility with existing user tools Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> |
|---|
|
|
| navi/tools/_internal/loader.py |
|---|