[fix]: issue#9443support object type in custom tool's parameters

This commit is contained in:
dufei 2024-10-25 09:52:51 +08:00
parent 86ba0d47a7
commit 05ed7e9999

View File

@ -170,7 +170,7 @@ class ApiBasedToolSchemaParser:
return ToolParameter.ToolParameterType.NUMBER
elif typ == "boolean":
return ToolParameter.ToolParameterType.BOOLEAN
elif typ == 'object':
elif typ == "object":
return ToolParameter.ToolParameterType.OBJECT
elif typ == "string":
return ToolParameter.ToolParameterType.STRING