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:
@@ -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",
|
||||
]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user