Fix/tool default value (#2536)

This commit is contained in:
Yeuoly 2024-02-23 12:02:29 +08:00 committed by GitHub
parent 9ecc736c30
commit 12257b438b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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