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

This commit is contained in:
非法操作
2024-07-11 11:02:58 +08:00
committed by GitHub
parent 12e55b2cac
commit 5660878f7b
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: Optional[I18nObject] = Field(None, description="The description presented to the user")
placeholder: Optional[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