diff --git a/libs/prebuilt/langgraph/prebuilt/chat_agent_executor.py b/libs/prebuilt/langgraph/prebuilt/chat_agent_executor.py index 73ef18fe6..5279674e2 100644 --- a/libs/prebuilt/langgraph/prebuilt/chat_agent_executor.py +++ b/libs/prebuilt/langgraph/prebuilt/chat_agent_executor.py @@ -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", ] +