mirror of
https://github.com/langgenius/dify.git
synced 2024-11-15 19:22:36 +08:00
Compare commits
3 Commits
aaa50f3df5
...
880d12851a
Author | SHA1 | Date | |
---|---|---|---|
|
880d12851a | ||
|
05ed7e9999 | ||
|
86ba0d47a7 |
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user