InteractionInputBuilder

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

Methods

Releases uploaded files associated with the input.
releaseFiles(): void
Sets the choice options for the input.
withChoiceOptions(choices: InteractionChoiceOption[]): InteractionInputBuilder
choicesInteractionChoiceOption[]The available choices, in display order. Each option pairs a submitted value with a display label.
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>The callback invoked to load the input. Use the supplied context to read other inputs and update this input.
optionsDynamicLoadingOptionsoptionalOptional configuration that controls when the callback runs.
InteractionInputBuilder
methodwithValue
Sets the value of the input.
withValue(value: string): InteractionInputBuilder
valuestringThe value to assign.
InteractionInputBuilder