# InteractionLoadingInput

- Module: [Aspire.Hosting](/reference/api/typescript/aspire.hosting.md)
- Version: `13.5.0`
- Kind: `handle`
- Source: [GitHub](https://github.com/microsoft/aspire/tree/e076d8e427cb3afb528dbd605acd74c3aea69f94)

A handle to the input currently being loaded by a dynamic-loading callback. Mirrors the native `LoadInputContext.Input` by letting callbacks update the live input directly.

## Definition

```typescript
interface InteractionLoadingInput {
  getName(): string;
  setChoiceOptions(choices: InteractionChoiceOption[]): void;
  setValue(value: string): void;
}
```

## Methods

- [getName](/reference/api/typescript/aspire.hosting/interactionloadinginput/getname.md) -- `method` -- Gets the name of the input.
    ```typescript
  getName(): string
  ```
- [setChoiceOptions](/reference/api/typescript/aspire.hosting/interactionloadinginput/setchoiceoptions.md) -- `method` -- Sets the choice options for the input.
    ```typescript
  setChoiceOptions(choices: InteractionChoiceOption[]): void
  ```
- [setValue](/reference/api/typescript/aspire.hosting/interactionloadinginput/setvalue.md) -- `method` -- Sets the value of the input.
    ```typescript
  setValue(value: string): void
  ```
