diff --git a/api/core/tools/entities/tool_entities.py b/api/core/tools/entities/tool_entities.py index 9a31e673d3..75b1ca3c68 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..57282f0013 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