diff --git a/libs/prebuilt/langgraph/prebuilt/chat_agent_executor.py b/libs/prebuilt/langgraph/prebuilt/chat_agent_executor.py index 12f40e3ff..fe7b04ca8 100644 --- a/libs/prebuilt/langgraph/prebuilt/chat_agent_executor.py +++ b/libs/prebuilt/langgraph/prebuilt/chat_agent_executor.py @@ -760,7 +760,7 @@ def create_react_agent( try: if hasattr(actual_schema, "__call__"): # For BaseModel classes - structured_response = actual_schema(**response_tool_call["args"]) + structured_response = actual_schema(**response_tool_call["args"]) # type: ignore[operator] else: # For dict schemas, just return the args structured_response = response_tool_call["args"] @@ -1043,3 +1043,4 @@ __all__ = [ +