AS AgentScopeAPI 手册 / API Reference
类class agentscope.tool

AskUserParams

class AskUserParams(BaseModel)
源码Source agentscope/tool/_builtin/_ask_user.py:142–163

Ask 用户参数,让智能体以受控方式调用外部能力。位于 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
questionslist[_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
基于官方固定版本源码静态生成Generated from pinned official sources · Python 2.0.11 · Java 2.0.4
签名与文档为静态抽取;如有疑问请以源码为准。Signatures and docs are extracted statically; verify against the source when in doubt.