Merge branch 'main' into fix/chore-fix

This commit is contained in:
Yeuoly
2024-12-16 14:08:18 +08:00
370 changed files with 11022 additions and 6468 deletions

View File

@ -68,6 +68,7 @@ class ToolNode(BaseNode[ToolNodeData]):
inputs={},
metadata={NodeRunMetadataKey.TOOL_INFO: tool_info},
error=f"Failed to get tool runtime: {str(e)}",
error_type=type(e).__name__,
)
)
return
@ -104,8 +105,10 @@ class ToolNode(BaseNode[ToolNodeData]):
inputs=parameters_for_log,
metadata={NodeRunMetadataKey.TOOL_INFO: tool_info},
error=f"Failed to invoke tool: {str(e)}",
error_type=type(e).__name__,
)
)
return
try:
# convert tool messages