mirror of
https://github.com/langchain-ai/langgraph.git
synced 2026-09-08 10:47:52 +02:00
Apply patch [skip ci]
This commit is contained in:
@@ -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__ = [
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user