diff --git a/api/core/tools/entities/tool_entities.py b/api/core/tools/entities/tool_entities.py index d8637fd2cb..68354f5a52 100644 --- a/api/core/tools/entities/tool_entities.py +++ b/api/core/tools/entities/tool_entities.py @@ -145,6 +145,7 @@ class ToolParameter(BaseModel): SECRET_INPUT = "secret-input" FILE = "file" FILES = "files" + OBJECT = "object" # deprecated, should not use. SYSTEM_FILES = "systme-files" diff --git a/api/core/tools/utils/parser.py b/api/core/tools/utils/parser.py index 5867a11bb3..aabd0bb9a1 100644 --- a/api/core/tools/utils/parser.py +++ b/api/core/tools/utils/parser.py @@ -170,6 +170,8 @@ class ApiBasedToolSchemaParser: return ToolParameter.ToolParameterType.NUMBER elif typ == "boolean": return ToolParameter.ToolParameterType.BOOLEAN + elif typ == "object": + return ToolParameter.ToolParameterType.OBJECT elif typ == "string": return ToolParameter.ToolParameterType.STRING