From 193b4c34ec1f3bd6a7fc0e5178d4f44de59392c1 Mon Sep 17 00:00:00 2001 From: "open-swe[bot]" Date: Fri, 22 Aug 2025 14:54:53 +0000 Subject: [PATCH] Apply patch [skip ci] --- libs/prebuilt/langgraph/prebuilt/tool_node.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/prebuilt/langgraph/prebuilt/tool_node.py b/libs/prebuilt/langgraph/prebuilt/tool_node.py index 06d2102a1..b6225db85 100644 --- a/libs/prebuilt/langgraph/prebuilt/tool_node.py +++ b/libs/prebuilt/langgraph/prebuilt/tool_node.py @@ -1168,7 +1168,7 @@ def _get_reserved_keyword_args(tool: BaseTool) -> dict[str, str]: A dictionary mapping reserved parameter names to their injection type. Keys are parameter names, values are either 'state' or 'runtime'. """ - reserved_args = {} + reserved_args: dict[str, str] = {} # Get the underlying function from the tool if hasattr(tool, "func"): @@ -1393,3 +1393,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 +