diff --git a/libs/prebuilt/langgraph/prebuilt/tool_node.py b/libs/prebuilt/langgraph/prebuilt/tool_node.py index 19653203d..4e8304769 100644 --- a/libs/prebuilt/langgraph/prebuilt/tool_node.py +++ b/libs/prebuilt/langgraph/prebuilt/tool_node.py @@ -1262,7 +1262,7 @@ def _wrap_tool_with_reserved_keywords( return filtered_schema except Exception: # If schema creation fails, return original - return original_schema + return original_schema # type: ignore[no-any-return] # Create the filtered tool instance filtered_tool = FilteredTool( @@ -1400,3 +1400,4 @@ def _get_runtime_arg(tool: BaseTool) -> Optional[str]: reserved_args = _get_reserved_keyword_args(tool) return "runtime" if "runtime" in reserved_args else None +