fix: add support for FILE type in ToolParameterConverter (#5578)

This commit is contained in:
-LAN- 2024-06-25 18:47:59 +08:00 committed by GitHub
parent 7c9e88dfb3
commit 45a3ea6fed
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -58,7 +58,8 @@ class ToolParameterConverter:
return float(value) return float(value)
else: else:
return int(value) return int(value)
case ToolParameter.ToolParameterType.FILE:
return value
case _: case _:
return str(value) return str(value)