Skip to main content

TestSlot

Stentor API Reference


Stentor API Reference / stentor-models/src / TestSlot

Interface: TestSlot\<T>

Defined in: packages/stentor-models/src/UtteranceTest.ts:9

Extends a RequestSlot by adding the RelativeDateTime as a possible value.

Extends​

Type Parameters​

T​

T = RequestSlotValues | RelativeDateTime

Properties​

name​

name: string

Defined in: packages/stentor-models/src/Request/IntentRequest.ts:38

The name of the slot, also used as the key in the RequestSlotMap.

For example, "FIRST_TEAM" or "Podcast", this is typically user defined.

Inherited from​

Omit.name


original?​

optional original: any

Defined in: packages/stentor-models/src/Request/IntentRequest.ts:51

The original value provided by the NLU before normalization.

Inherited from​

Omit.original


rawValue?​

optional rawValue: string

Defined in: packages/stentor-models/src/Request/IntentRequest.ts:57

The raw spoken value.

For example, "cavaliers" or "red"

Inherited from​

Omit.rawValue


id?​

optional id: string

Defined in: packages/stentor-models/src/Request/IntentRequest.ts:63

ID of the slot, if applicable.

For example, "UVA"

Inherited from​

Omit.id


matchConfidence?​

optional matchConfidence: number

Defined in: packages/stentor-models/src/Request/IntentRequest.ts:67

Confidence on the slot match. Range is between 0 - 1 where 1 is the highest confidence.

Inherited from​

Omit.matchConfidence


successfulMatch?​

optional successfulMatch: boolean

Defined in: packages/stentor-models/src/Request/IntentRequest.ts:73

If the entity resolution was successful or not.

See https://developer.amazon.com/docs/custom-skills/define-synonyms-and-ids-for-slot-type-values-entity-resolution.html#er-built-in-types

Inherited from​

Omit.successfulMatch


value​

value: T

Defined in: packages/stentor-models/src/UtteranceTest.ts:10