From cde4b9092f5b7ec6c7ab702987d7b8d3b190d50d Mon Sep 17 00:00:00 2001 From: "open-swe[bot]" Date: Fri, 22 Aug 2025 14:57:10 +0000 Subject: [PATCH] Apply patch [skip ci] --- libs/prebuilt/langgraph/prebuilt/tool_node.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libs/prebuilt/langgraph/prebuilt/tool_node.py b/libs/prebuilt/langgraph/prebuilt/tool_node.py index 4674d9849..d44b70bbe 100644 --- a/libs/prebuilt/langgraph/prebuilt/tool_node.py +++ b/libs/prebuilt/langgraph/prebuilt/tool_node.py @@ -1262,6 +1262,7 @@ def _wrap_tool_with_reserved_keywords( name=tool.name, description=tool.description, func=getattr(tool, 'func', None), + args_schema=tool.get_input_schema(), # Use original schema for initialization ) # Copy over other attributes @@ -1384,3 +1385,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 +