[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 return ToolParameter.ToolParameterType.NUMBER
elif typ == "boolean": elif typ == "boolean":
return ToolParameter.ToolParameterType.BOOLEAN return ToolParameter.ToolParameterType.BOOLEAN
elif typ == 'object': elif typ == "object":
return ToolParameter.ToolParameterType.OBJECT return ToolParameter.ToolParameterType.OBJECT
elif typ == "string": elif typ == "string":
return ToolParameter.ToolParameterType.STRING return ToolParameter.ToolParameterType.STRING