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:
@@ -520,7 +520,7 @@ def create_react_agent(
|
||||
if hasattr(actual_schema, "__name__"):
|
||||
response_tool_name = actual_schema.__name__ # type: ignore[union-attr]
|
||||
elif isinstance(actual_schema, dict) and "title" in actual_schema:
|
||||
response_tool_name = actual_schema["title"] # type: ignore[index]
|
||||
response_tool_name = actual_schema["title"]
|
||||
else:
|
||||
response_tool_name = "ResponseSchema"
|
||||
|
||||
@@ -1045,3 +1045,4 @@ __all__ = [
|
||||
"AgentStateWithStructuredResponsePydantic",
|
||||
]
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user