From 05ed7e9999064a0dbb9416e483e383e1e70fa1b1 Mon Sep 17 00:00:00 2001 From: dufei Date: Fri, 25 Oct 2024 09:52:51 +0800 Subject: [PATCH] [fix]: issue#9443support object type in custom tool's parameters --- api/core/tools/utils/parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/core/tools/utils/parser.py b/api/core/tools/utils/parser.py index 57282f0013..aabd0bb9a1 100644 --- a/api/core/tools/utils/parser.py +++ b/api/core/tools/utils/parser.py @@ -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