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.

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 | Partial<Activity>

Property Value

string | Partial<Activity>

retryPrompt

(Optional) Retry prompt to send the user.

retryPrompt?: string | Partial<Activity>

Property Value

string | Partial<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