Slot
Stellt eine Anzeigenfläche dar.
JSON-Darstellung |
{
"mode": enum (SlotMode ),
"status": enum (SlotStatus ),
"value": value,
"updated": boolean,
"prompt": {
object (Prompt )
}
} |
Felder |
mode |
enum (SlotMode )
Der Modus des Slots (erforderlich oder optional). Kann vom Entwickler festgelegt werden.
|
status |
enum (SlotStatus )
Der Status des Slots.
|
value |
value (Value format)
Der Wert des Slots. Wenn Sie diesen Wert in der Antwort ändern, wird der Wert in der Slot-Füllung geändert.
|
updated |
boolean
Gibt an, ob der Slotwert in der letzten Runde erfasst wurde. Dieses Feld ist schreibgeschützt.
|
prompt |
object (Prompt )
Optional. Diese Aufforderung wird an den Nutzer gesendet, wenn er einen erforderlichen Slot füllen muss. Dieser Prompt überschreibt den vorhandenen Prompt, der in der Konsole definiert ist. Dieses Feld ist nicht in der Webhook-Anfrage enthalten.
|
Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers. Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
Zuletzt aktualisiert: 2024-09-10 (UTC).
[null,null,["Zuletzt aktualisiert: 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"]]