mirror of
https://github.com/langgenius/dify.git
synced 2024-11-16 03:32:23 +08:00
Merge 05ed7e9999
into d05fee1182
This commit is contained in:
commit
bcc6d756eb
|
@ -145,6 +145,7 @@ class ToolParameter(BaseModel):
|
||||||
SECRET_INPUT = "secret-input"
|
SECRET_INPUT = "secret-input"
|
||||||
FILE = "file"
|
FILE = "file"
|
||||||
FILES = "files"
|
FILES = "files"
|
||||||
|
OBJECT = "object"
|
||||||
|
|
||||||
# deprecated, should not use.
|
# deprecated, should not use.
|
||||||
SYSTEM_FILES = "systme-files"
|
SYSTEM_FILES = "systme-files"
|
||||||
|
|
|
@ -170,6 +170,8 @@ 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":
|
||||||
|
return ToolParameter.ToolParameterType.OBJECT
|
||||||
elif typ == "string":
|
elif typ == "string":
|
||||||
return ToolParameter.ToolParameterType.STRING
|
return ToolParameter.ToolParameterType.STRING
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user