# InteractionInputBuilder

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

An opaque, server-side builder for an `InteractionInput` used by polyglot AppHosts.

## Remarks

The builder owns the live `InteractionInput` instance. Dynamic-loading callbacks mutate this same
instance through `InteractionInputLoadContext`, which is why the input is modeled as a handle here
instead of the by-value `InteractionInput` DTO.

## Definition

```go
type InteractionInputBuilder interface{}
```

## Methods

- [ReleaseFiles](/reference/api/go/aspire.hosting/interactioninputbuilder/releasefiles.md) -- `method` -- Releases uploaded files associated with the input.
  ```go
  ReleaseFiles() error
  ```
- [WithChoiceOptions](/reference/api/go/aspire.hosting/interactioninputbuilder/withchoiceoptions.md) -- `method` -- Sets the choice options for the input.
  ```go
  WithChoiceOptions(choices []*InteractionChoiceOption) InteractionInputBuilder
  ```
- [WithDynamicLoading](/reference/api/go/aspire.hosting/interactioninputbuilder/withdynamicloading.md) -- `method` -- Attaches a callback that dynamically loads or updates the input after the prompt starts.
  ```go
  WithDynamicLoading(callback func(arg InteractionInputLoadContext), options ...*DynamicLoadingOptions) InteractionInputBuilder
  ```
- [WithValue](/reference/api/go/aspire.hosting/interactioninputbuilder/withvalue.md) -- `method` -- Sets the value of the input.
  ```go
  WithValue(value string) InteractionInputBuilder
  ```
