From 3c1e129fda98e7a95820d76844277dae0aa322ee Mon Sep 17 00:00:00 2001 From: "open-swe[bot]" Date: Tue, 12 Aug 2025 17:06:04 +0000 Subject: [PATCH] Apply patch [skip ci] --- .../prebuilt/langgraph/prebuilt/chat_agent_executor.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/libs/prebuilt/langgraph/prebuilt/chat_agent_executor.py b/libs/prebuilt/langgraph/prebuilt/chat_agent_executor.py index ea7898c01..d726e0479 100644 --- a/libs/prebuilt/langgraph/prebuilt/chat_agent_executor.py +++ b/libs/prebuilt/langgraph/prebuilt/chat_agent_executor.py @@ -1229,7 +1229,9 @@ def create_react_agent( # Create a temporary ToolExecutor to inject tool arguments temp_executor = ToolExecutor(tool_classes[0]) if tool_classes else None tool_calls = [ - temp_executor.inject_tool_args(call, state, store) if temp_executor else call # type: ignore[arg-type] + temp_executor.inject_tool_args(call, state, store) + if temp_executor + else call # type: ignore[arg-type] for call in last_message.tool_calls ] return [Send(call["name"], call) for call in tool_calls] @@ -1323,7 +1325,9 @@ def create_react_agent( # Create a temporary ToolExecutor to inject tool arguments temp_executor = ToolExecutor(tool_classes[0]) if tool_classes else None pending_tool_calls = [ - temp_executor.inject_tool_args(call, state, store) if temp_executor else call # type: ignore[arg-type] + temp_executor.inject_tool_args(call, state, store) + if temp_executor + else call # type: ignore[arg-type] for call in pending_tool_calls ] return [Send(call["name"], call) for call in pending_tool_calls] @@ -1396,5 +1400,3 @@ __all__ = [ "AgentStateWithStructuredResponse", "AgentStateWithStructuredResponsePydantic", ] - -