IntentEvent
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
उन इवेंट को रजिस्टर करता है जो इंटेंट मैच की वजह से ट्रिगर होते हैं.
YAML प्रतिनिधि |
intent: string
transitionToScene: string
handler:
object (EventHandler ) |
फ़ील्ड |
intent |
string
ज़रूरी है. इवेंट को ट्रिगर करने वाला इंटेंट.
|
transitionToScene |
string
ज़रूरी नहीं. वह डेस्टिनेशन सीन जहां बातचीत को सीधे तौर पर जाना चाहिए. ट्रांज़िशन के दौरान, मौजूदा सीन की स्थिति मिटा दी जाती है.
|
handler |
object (EventHandler )
ज़रूरी नहीं. इंटेंट मैच होने पर ट्रिगर होने वाला इवेंट हैंडलर. डेस्टिनेशन सीन पर जाने से पहले लागू होना चाहिए. इससे इवेंट के जवाब में प्रॉम्प्ट जनरेट किए जा सकते हैं.
|
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-07-26 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2025-07-26 (UTC) को अपडेट किया गया."],[[["\u003cp\u003eThe YAML representation is used to register events that are triggered when an intent is matched.\u003c/p\u003e\n"],["\u003cp\u003eIt includes fields like \u003ccode\u003eintent\u003c/code\u003e (required) for the triggering intent, \u003ccode\u003etransitionToScene\u003c/code\u003e (optional) for scene transition, and \u003ccode\u003ehandler\u003c/code\u003e (optional) for event handling before scene transition.\u003c/p\u003e\n"],["\u003cp\u003eEvent handlers can be used to execute actions, such as generating prompts, in response to the triggered intent.\u003c/p\u003e\n"]]],[],null,["# IntentEvent\n\n- [YAML representation](#SCHEMA_REPRESENTATION)\n\nRegisters Events which trigger as the result of an intent match.\n\n| YAML representation ||\n|-----------------------------------------------------------------------------------------------------------------------------------|---|\n| ``` intent: string transitionToScene: string handler: object (/assistant/actionssdk/reference/rest/Shared.Types/EventHandler) ``` |\n\n| Fields ||\n|---------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `intent` | `string` Required. Intent triggering the event. |\n| `transitionToScene` | `string` Optional. Destination scene which the conversation should jump to. The state of the current scene is destroyed on the transition. |\n| `handler` | `object (`[EventHandler](/assistant/actionssdk/reference/rest/Shared.Types/EventHandler)`)` Optional. Event handler which is triggered when the intent is matched. Should execute before transitioning to the destination scene. Useful to generate prompts in response to events. |"]]