From 4a751fa03b8ea9bad69fee2c6f6e48b25910495f Mon Sep 17 00:00:00 2001 From: "open-swe[bot]" Date: Tue, 12 Aug 2025 17:08:06 +0000 Subject: [PATCH] Apply patch [skip ci] --- libs/prebuilt/langgraph/prebuilt/chat_agent_executor.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/prebuilt/langgraph/prebuilt/chat_agent_executor.py b/libs/prebuilt/langgraph/prebuilt/chat_agent_executor.py index dc8e62bb9..2248e9b24 100644 --- a/libs/prebuilt/langgraph/prebuilt/chat_agent_executor.py +++ b/libs/prebuilt/langgraph/prebuilt/chat_agent_executor.py @@ -69,7 +69,7 @@ INVALID_TOOL_NAME_ERROR_TEMPLATE = ( TOOL_CALL_ERROR_TEMPLATE = "Error: {error}\n Please fix your mistakes." -def _msg_content_output(output: Any) -> Union[str, list[dict]]: +def _msg_content_output(output: Any) -> Union[str, list[Union[str, dict[str, Any]]]]: """Convert tool output to valid message content format.""" if isinstance(output, str): return output @@ -1400,3 +1400,4 @@ __all__ = [ "AgentStateWithStructuredResponse", "AgentStateWithStructuredResponsePydantic", ] +