Slot
Biểu diễn dưới dạng JSON |
{
"mode": enum (SlotMode ),
"status": enum (SlotStatus ),
"value": value,
"updated": boolean,
"prompt": {
object (Prompt )
}
} |
Trường |
mode |
enum (SlotMode )
Chế độ của vùng quảng cáo (bắt buộc hoặc không bắt buộc). Nhà phát triển có thể thiết lập.
|
status |
enum (SlotStatus )
Trạng thái của vị trí.
|
value |
value (Value format)
Giá trị của vị trí. Việc thay đổi giá trị này trong phản hồi sẽ sửa đổi giá trị khi lấp đầy vùng.
|
updated |
boolean
Cho biết liệu giá trị ô có được thu thập vào lượt cuối cùng hay không. Trường này ở chế độ chỉ đọc.
|
prompt |
object (Prompt )
Không bắt buộc. Hệ thống sẽ gửi lời nhắc này cho người dùng khi họ cần lấp đầy một khoảng trống bắt buộc. Câu lệnh này sẽ ghi đè câu lệnh hiện có được xác định trong bảng điều khiển. Trường này không được đưa vào yêu cầu webhook.
|
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."],[[["Slots are represented in JSON format with fields indicating their mode, status, value, update status, and an optional prompt."],["Developers can define if a slot is required or optional using the `mode` field and include a custom prompt to guide user input."],["The `value` field in the JSON response allows modification of the slot value, directly impacting the slot filling process."],["A dedicated `prompt` field allows overriding the default prompt, offering flexibility in guiding user interactions."]]],["The JSON represents a slot with fields for `mode` (required/optional), `status`, and `value`. Developers can set the `mode`, and modifying the `value` updates slot filling. The `updated` field indicates if the value was collected on the last turn. An optional `prompt` field, overriding console prompts, is for eliciting required slot information from the user. These elements are essential to define and manage how conversational slots get filled.\n"]]