类class
agentscope.toolAskUserParams
class AskUserParams(BaseModel)
源码Source
agentscope/tool/_builtin/_ask_user.py:142–163Ask 用户参数,让智能体以受控方式调用外部能力。位于 agentscope.tool 包。
A model fills this in from :attr:AskUser.input_schema; a program
building the call itself has this to build it with.
属性摘要Attribute Summary
| 属性Attribute | 类型Type | 说明Description | 值Value |
|---|---|---|---|
questions | list[_Question] | `questions` 字段。 | Field(min_length=1, max_length=4, description='Questions to ask the user (1-4 questions). Question texts must be unique; option labels must be unique within each question.') |
属性详情Attribute Detail
questions
list[_Question] = Field(min_length=1, max_length=4, description='Questions to ask the user (1-4 questions). Question texts must be unique; option labels must be unique within each question.')questions 字段。声明为 list[_Question]。
Questions to ask the user (1-4 questions).
源码Source
agentscope/tool/_builtin/_ask_user.py:148