Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

SlotValueSelectionSetting

import type { SlotValueSelectionSetting } from "https://aws-api.deno.dev/v0.4/services/lexmodelsv2.ts?docs=full";

Contains settings used by Amazon Lex to select a slot value.

interface SlotValueSelectionSetting {
advancedRecognitionSetting?: AdvancedRecognitionSetting | null;
regexFilter?: SlotValueRegexFilter | null;
resolutionStrategy: SlotValueResolutionStrategy;
}

§Properties

§
advancedRecognitionSetting?: AdvancedRecognitionSetting | null
[src]

Provides settings that enable advanced recognition settings for slot values.

§
regexFilter?: SlotValueRegexFilter | null
[src]

A regular expression used to validate the value of a slot.

§

Determines the slot resolution strategy that Amazon Lex uses to return slot type values. The field can be set to one of the following values:

  • OriginalValue - Returns the value entered by the user, if the user value is similar to the slot value.
  • TopResolution - If there is a resolution list for the slot, return the first value in the resolution list as the slot type value. If there is no resolution list, null is returned.

If you don't specify the valueSelectionStrategy, the default is OriginalValue.