Entity
Stentor API Reference / stentor-models/src / Entity
Interface: Entity
Defined in: packages/stentor-models/src/Entity/Entity.ts:4
Propertiesβ
appId?β
optionalappId:string
Defined in: packages/stentor-models/src/Entity/Entity.ts:10
The ID for the application the entity belongs to.
This is immutable.
entityIdβ
entityId:
string
Defined in: packages/stentor-models/src/Entity/Entity.ts:18
The ID (name) of the entity.
This is meant for machines but is somewhat human readable
This is immutable.
nlu?β
optionalnlu:object
Defined in: packages/stentor-models/src/Entity/Entity.ts:24
NLU specific metadata used when translating to the NLU entity.
Use it to override the entity type for a specific NLU
Index Signatureβ
[nlu: string]: object
displayName?β
optionaldisplayName:string
Defined in: packages/stentor-models/src/Entity/Entity.ts:28
Optional display name, used to help better communicate the entity.
dialogflowId?β
optionaldialogflowId:string
Defined in: packages/stentor-models/src/Entity/Entity.ts:34
Optional ID if the slot type has a representation in Dialogflow.
Deprecatedβ
This field is being phased out. It will be removed in the next major release
valuesβ
values:
EntityValue[]
Defined in: packages/stentor-models/src/Entity/Entity.ts:38
Values for the entity.
type?β
optionaltype:"REGEX"|"VALUE_SYNONYMS"
Defined in: packages/stentor-models/src/Entity/Entity.ts:50
Alpha
The type of entity.
If not set, the default is 'VALUE_SYNONYMS' which uses a set of values and corresponding synonyms for the value.
REGEX is when the values are expecting to be a regular expression. This is not supported by all NLU.
Still under development. It may change.