cleanup: remove hacked code

This commit is contained in:
Yeuoly 2024-10-22 17:56:13 +08:00
parent b916b4064a
commit a0a1243c90
No known key found for this signature in database
GPG Key ID: A66E7E320FB19F61

View File

@ -140,17 +140,6 @@ class ToolNode(BaseNode[ToolNodeData]):
raise ValueError(f"unknown tool input type '{tool_input.type}'")
result[parameter_name] = parameter_value
# HACK:
result["file"] = File(
tenant_id="9a80db54-1557-46da-81fe-f0c4fd3df066",
type=FileType.IMAGE,
transfer_method=FileTransferMethod.TOOL_FILE,
remote_url="https://example.com/image.png",
related_id="67f4eb5d-3419-4faf-b147-f77d8d69c6b6",
filename="image.png",
extension=".png",
mime_type="image/png",
)
return result