IntentParameterValue
Đại diện cho một giá trị cho tham số ý định.
Biểu diễn dưới dạng JSON |
{
"original": string,
"resolved": value
} |
Trường |
original |
string
Bắt buộc. Giá trị văn bản gốc được trích xuất từ cách nói của người dùng.
|
resolved |
value (Value format)
Bắt buộc. Giá trị có cấu trúc cho thông số được trích xuất từ hoạt động đầu vào của người dùng. Mã này sẽ chỉ được điền sẵn nếu tham số được xác định trong ý định được so khớp và giá trị của tham số này có thể được xác định trong quá trình so khớp ý định.
|
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2024-09-10 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2024-09-10 UTC."],[[["JSON representation showcases the intent parameter's value with `original` indicating the user's input and `resolved` displaying the structured, extracted value."],["`original` is a required string field containing the raw user utterance, while `resolved` is a required field providing the structured data in [Value](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.Value) format, present only if the parameter is defined within the matched intent and its value is identifiable."]]],["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"]]