OptionInfo
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
与在对话框中触发选项项相关的其他信息。请更新 assistant.logs.actions.OptionInfo 以反映所做的更改。
JSON 表示法 |
{
"key": string,
"synonyms": [
string
]
} |
字段 |
key |
string
一个唯一密钥,如果给出此响应,则会将此密钥发回给代理。
|
synonyms[] |
string
也可用于在对话框中触发此项目的同义词列表。
|
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\u003cp\u003eJSON representation is used for defining options with a unique key and optional synonyms.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ekey\u003c/code\u003e field is a string that acts as a unique identifier sent back to the agent when the option is selected.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003esynonyms\u003c/code\u003e is an array of strings that provide alternative ways to trigger the option in dialog.\u003c/p\u003e\n"]]],[],null,["# OptionInfo\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n\nAdditional info about the option item related to triggering it in a dialog. Please update assistant.logs.actions.OptionInfo to reflect any changes made.\n\n| JSON representation ||\n|---------------------------------------------------|---|\n| ``` { \"key\": string, \"synonyms\": [ string ] } ``` |\n\n| Fields ||\n|--------------|--------------------------------------------------------------------------------------|\n| `key` | `string` A unique key that will be sent back to the agent if this response is given. |\n| `synonyms[]` | `string` A list of synonyms that can also be used to trigger this item in dialog. |"]]