mirror of
https://github.com/langgenius/dify.git
synced 2024-11-16 03:32:23 +08:00
Fix/tool default value (#2536)
This commit is contained in:
parent
9ecc736c30
commit
12257b438b
|
@ -113,7 +113,7 @@ class ToolParameter(BaseModel):
|
||||||
form: ToolParameterForm = Field(..., description="The form of the parameter, schema/form/llm")
|
form: ToolParameterForm = Field(..., description="The form of the parameter, schema/form/llm")
|
||||||
llm_description: Optional[str] = None
|
llm_description: Optional[str] = None
|
||||||
required: Optional[bool] = False
|
required: Optional[bool] = False
|
||||||
default: Optional[Union[bool, str, int]] = None
|
default: Optional[Union[int, str]] = None
|
||||||
min: Optional[Union[float, int]] = None
|
min: Optional[Union[float, int]] = None
|
||||||
max: Optional[Union[float, int]] = None
|
max: Optional[Union[float, int]] = None
|
||||||
options: Optional[list[ToolParameterOption]] = None
|
options: Optional[list[ToolParameterOption]] = None
|
||||||
|
|
Loading…
Reference in New Issue
Block a user