Skip to content
DocsTry Aspire
DocsTry

InteractionInputBuilder

Handle
📦 Aspire.Hosting v13.5.0
interface InteractionInputBuilder {
withChoiceOptions(choices: InteractionChoiceOption[]): InteractionInputBuilder;
withDynamicLoading(callback: (arg: InteractionInputLoadContext) => Promise<void>, options?: DynamicLoadingOptions): InteractionInputBuilder;
withValue(value: string): InteractionInputBuilder;
}

Methods

Sets the choice options for the input.
withChoiceOptions(choices: InteractionChoiceOption[]): InteractionInputBuilder
choicesInteractionChoiceOption[]
InteractionInputBuilder
Attaches a callback that dynamically loads or updates the input after the prompt starts.
withDynamicLoading(callback: (arg: InteractionInputLoadContext) => Promise<void>, options?: DynamicLoadingOptions): InteractionInputBuilder
callback(arg: InteractionInputLoadContext) => Promise<void>
optionsDynamicLoadingOptionsoptional
InteractionInputBuilder
methodwithValue
Sets the value of the input.
withValue(value: string): InteractionInputBuilder
valuestring
InteractionInputBuilder