Resource: EntityType
Represents an entity type. Entity types serve as a tool for extracting parameter values from natural language queries.
JSON representation | |
---|---|
{ "name": string, "displayName": string, "kind": enum( |
Fields | |
---|---|
name |
The unique identifier of the entity type. Required for |
displayName |
Required. The name of the entity type. |
kind |
Required. Indicates the kind of entity type. |
autoExpansionMode |
Optional. Indicates whether the entity type can be automatically expanded. |
entities[] |
Optional. The collection of entity entries associated with the entity type. |
Kind
Represents kinds of entities.
Enums | |
---|---|
KIND_UNSPECIFIED |
Not specified. This value should be never used. |
KIND_MAP |
Map entity types allow mapping of a group of synonyms to a canonical value. |
KIND_LIST |
List entity types contain a set of entries that do not map to canonical values. However, list entity types can contain references to other entity types (with or without aliases). |
AutoExpansionMode
Represents different entity type expansion modes. Automated expansion allows an agent to recognize values that have not been explicitly listed in the entity (for example, new kinds of shopping list items).
Enums | |
---|---|
AUTO_EXPANSION_MODE_UNSPECIFIED |
Auto expansion disabled for the entity. |
AUTO_EXPANSION_MODE_DEFAULT |
Allows an agent to recognize values that have not been explicitly listed in the entity. |
Methods |
|
---|---|
|
Deletes entity types in the specified agent. |
|
Updates/Creates multiple entity types in the specified agent. |
|
Creates an entity type in the specified agent. |
|
Deletes the specified entity type. |
|
Retrieves the specified entity type. |
|
Returns the list of all entity types in the specified agent. |
|
Updates the specified entity type. |