IntentParameterValue
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
JSON 表示法 |
{
"original": string,
"resolved": value
} |
字段 |
original |
string
必需。从用户话语中提取的原始文本值。
|
resolved |
value (Value format)
必需。从用户输入中提取的参数的结构化值。只有当匹配的意图中定义了参数,且在意图匹配期间可以识别参数的值,系统才会填充此字段。
|
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\u003cp\u003eJSON representation showcases the intent parameter's value with \u003ccode\u003eoriginal\u003c/code\u003e indicating the user's input and \u003ccode\u003eresolved\u003c/code\u003e displaying the structured, extracted value.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eoriginal\u003c/code\u003e is a required string field containing the raw user utterance, while \u003ccode\u003eresolved\u003c/code\u003e is a required field providing the structured data in \u003ca href=\"https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.Value\"\u003eValue\u003c/a\u003e format, present only if the parameter is defined within the matched intent and its value is identifiable.\u003c/p\u003e\n"]]],["The JSON representation defines a value for an intent parameter, containing two key fields. `original` is a required string representing the text extracted from the user's input. `resolved` is also required and holds the structured parameter value in a specified format, extracted from the user's input during intent matching, and is only present if defined and identifiable.\n"],null,["# IntentParameterValue\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n\nRepresents a value for intent parameter.\n\n| JSON representation ||\n|---------------------------------------------------|---|\n| ``` { \"original\": string, \"resolved\": value } ``` |\n\n| Fields ||\n|------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `original` | `string` Required. Original text value extracted from user utterance. |\n| `resolved` | `value (`[Value](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.Value)` format)` Required. Structured value for parameter extracted from user input. This will only be populated if the parameter is defined in the matched intent and the value of the parameter could be identified during intent matching. |"]]