Share via


PromptOptions interface

Basic configuration options supported by all prompts.

Properties

choices

(Optional) List of choices associated with the prompt.

prompt

(Optional) Initial prompt to send the user.

recognizeLanguage

The locale to be use for recognizing the utterance.

retryPrompt

(Optional) Retry prompt to send the user.

style

(Optional) Property that can be used to override or set the value of ChoicePrompt.Style when the prompt is executed using DialogContext.prompt.

validations

(Optional) Additional validation rules to pass the prompts validator routine.

Property Details

choices

(Optional) List of choices associated with the prompt.

choices?: (string | Choice)[]

Property Value

(string | Choice)[]

prompt

(Optional) Initial prompt to send the user.

prompt?: string | Activity

Property Value

string | Activity

recognizeLanguage

The locale to be use for recognizing the utterance.

recognizeLanguage?: string

Property Value

string

retryPrompt

(Optional) Retry prompt to send the user.

retryPrompt?: string | Activity

Property Value

string | Activity

style

(Optional) Property that can be used to override or set the value of ChoicePrompt.Style when the prompt is executed using DialogContext.prompt.

style?: ListStyle

Property Value

validations

(Optional) Additional validation rules to pass the prompts validator routine.

validations?: object

Property Value

object