התכונה 'פעולות שיחה' הוצאה משימוש ב-13 ביוני 2023.
כאן תוכלו לקרוא מידע נוסף על ההוצאה משימוש של 'פעולות שיחה'.
Type
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
הצהרה על סוג בהתאמה אישית, בניגוד לסוגים מובנים. אפשר להקצות סוגים למשבצות בסצנה או לפרמטרים של ביטויי אימון של Intent. בפועל, אפשר להתייחס לסוגים כטיפוסים של טיפוסים בני מנייה (enum). הערה: שם הסוג מצוין בשם הקובץ.
ייצוג YAML |
exclusions:
- string
# Union field sub_type can be only one of the following:
synonym:
object (SynonymType )
regularExpression:
object (RegularExpressionType )
freeText:
object (FreeTextType )
# End of list of possible types for union field sub_type . |
שדות |
exclusions[] |
string
קבוצה של מילים או ביטויים יוצאי דופן שלא מתאימים לסוג. הערה: אם המילה או הביטוי תואמים לסוג אבל רשומים כהחרגה, הם לא יוחזרו בתוצאת חילוץ הפרמטר. השדה הזה ניתן להתאמה לשוק המקומי.
|
שדה איחוד sub_type . בחירת סוג משנה על סמך סוג ההתאמה לביצוע. sub_type יכול להיות רק אחת מהאפשרויות הבאות: |
synonym |
object (SynonymType )
סוג מילים נרדפות, שהוא בעצם טיפוס טיפוסים בני מנייה (enum).
|
regularExpression |
object (RegularExpressionType )
סוג ביטוי רגולרי, מאפשר התאמה לביטוי רגולרי.
|
freeText |
object (FreeTextType )
סוג טקסט חופשי.
|
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-07-26 (שעון UTC).
[null,null,["עדכון אחרון: 2025-07-26 (שעון UTC)."],[[["\u003cp\u003eCustom types, similar to enums, are declared in YAML and used for slots and intent parameters.\u003c/p\u003e\n"],["\u003cp\u003eTypes can utilize synonyms, regular expressions, or free text for matching, with exclusions for specific words or phrases.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eexclusions\u003c/code\u003e field is localizable, allowing for language-specific variations in excluded terms.\u003c/p\u003e\n"],["\u003cp\u003eEach custom type definition is stored in a separate file where the file name defines the type name.\u003c/p\u003e\n"]]],[],null,["# Type\n\n- [YAML representation](#SCHEMA_REPRESENTATION)\n\nDeclaration of a custom type, as opposed to built-in types. Types can be assigned to slots in a scene or parameters of an intent's training phrases. Practically, Types can be thought of as enums. Note, type name is specified in the name of the file.\n\n| YAML representation ||\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| ``` exclusions: - string # Union field `sub_type` can be only one of the following: synonym: object (/assistant/actionssdk/reference/rest/Shared.Types/SynonymType) regularExpression: object (/assistant/actionssdk/reference/rest/Shared.Types/RegularExpressionType) freeText: object (/assistant/actionssdk/reference/rest/Shared.Types/FreeTextType) # End of list of possible types for union field `sub_type`. ``` |\n\n| Fields ||\n|---------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| `exclusions[]` | `string` Set of exceptional words/phrases that shouldn't be matched by type. Note: If word/phrase is matched by the type but listed as an exclusion it won't be returned in parameter extraction result. **This field is localizable.** |\n| Union field `sub_type`. Selection of sub type based on the type of matching to be done. `sub_type` can be only one of the following: |||\n| `synonym` | `object (`[SynonymType](/assistant/actionssdk/reference/rest/Shared.Types/SynonymType)`)` Synonyms type, which is essentially an enum. |\n| `regularExpression` | `object (`[RegularExpressionType](/assistant/actionssdk/reference/rest/Shared.Types/RegularExpressionType)`)` Regex type, allows regular expression matching. |\n| `freeText` | `object (`[FreeTextType](/assistant/actionssdk/reference/rest/Shared.Types/FreeTextType)`)` FreeText type. |"]]