diff --git a/libs/prebuilt/langgraph/prebuilt/chat_agent_executor.py b/libs/prebuilt/langgraph/prebuilt/chat_agent_executor.py index fe7b04ca8..5ad1de688 100644 --- a/libs/prebuilt/langgraph/prebuilt/chat_agent_executor.py +++ b/libs/prebuilt/langgraph/prebuilt/chat_agent_executor.py @@ -806,7 +806,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"] @@ -1044,3 +1044,4 @@ __all__ = [ +