chore: update the tool's doc (#6122)

This commit is contained in:
非法操作
2024-07-10 12:42:34 +08:00
committed by GitHub
parent b07dea836c
commit 1d2ab2126c
5 changed files with 53 additions and 21 deletions

View File

@@ -142,7 +142,8 @@ class ToolParameter(BaseModel):
name: str = Field(..., description="The name of the parameter")
label: I18nObject = Field(..., description="The label presented to the user")
human_description: I18nObject = Field(..., description="The description presented to the user")
human_description: I18nObject = Field(None, description="The description presented to the user")
placeholder: I18nObject = Field(None, description="The placeholder presented to the user")
type: ToolParameterType = Field(..., description="The type of the parameter")
form: ToolParameterForm = Field(..., description="The form of the parameter, schema/form/llm")
llm_description: Optional[str] = None