mirror of
https://github.com/langgenius/dify.git
synced 2024-11-16 03:32:23 +08:00
[fix]: issue#9443support object type in custom tool's parameters
This commit is contained in:
parent
86ba0d47a7
commit
05ed7e9999
|
@ -170,7 +170,7 @@ 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':
|
elif typ == "object":
|
||||||
return ToolParameter.ToolParameterType.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