Slot
JSON के काेड में दिखाना |
{
"mode": enum (SlotMode ),
"status": enum (SlotStatus ),
"value": value,
"updated": boolean,
"prompt": {
object (Prompt )
}
} |
फ़ील्ड |
mode |
enum (SlotMode )
स्लॉट का मोड (ज़रूरी या ज़रूरी नहीं). डेवलपर इसे सेट कर सकता है.
|
status |
enum (SlotStatus )
स्लॉट की स्थिति.
|
value |
value (Value format)
स्लॉट की वैल्यू. रिस्पॉन्स में इस वैल्यू को बदलने पर, स्लॉट फ़िलिंग में मौजूद वैल्यू में बदलाव होगा.
|
updated |
boolean
यह बताता है कि स्लॉट वैल्यू को आखिरी बार इकट्ठा किया गया था या नहीं. इस फ़ील्ड को सिर्फ़ पढ़ा जा सकता है.
|
prompt |
object (Prompt )
ज़रूरी नहीं. यह प्रॉम्प्ट किसी ज़रूरी स्लॉट को भरने के दौरान उपयोगकर्ता को भेजा जाता है. यह प्रॉम्प्ट, कंसोल में तय किए गए मौजूदा प्रॉम्प्ट को बदल देता है. वेबहुक अनुरोध में यह फ़ील्ड शामिल नहीं है.
|
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2024-09-10 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 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"]]