createChoiceInput

Method
📦 Aspire.Hosting v17.0.0
interface IInteractionService {
// ... omitted for brevity
createChoiceInput(
name: string,
choices?: InteractionChoiceOption[],
options?: CreateInteractionInputOptions): InteractionInputBuilder;
}

Signature

methodcreateChoiceInput
Creates a choice input that selects from a list of options.
createChoiceInput(
name: string,
choices?: InteractionChoiceOption[],
options?: CreateInteractionInputOptions): InteractionInputBuilder
namestringThe name of the input.
choicesInteractionChoiceOption[]optionalThe available choices, in display order. Each option pairs a submitted value with a display label.
optionsCreateInteractionInputOptionsoptionalOptional configuration for the input.
InteractionInputBuilder

Applies to

This method applies to the following types: