# HostedAgentOptions

- Module: [Aspire.Hosting.Foundry](/reference/api/typescript/aspire.hosting.foundry.md)
- Version: `13.4.0-preview.1.26281.18`
- Kind: `type`
- Source: [GitHub](https://github.com/microsoft/aspire)

Options that control how a compute resource is deployed as a Microsoft Foundry hosted agent. All properties are optional; unset properties fall back to the Foundry hosted agent defaults.

## Definition

```typescript
type HostedAgentOptions = {
  Description: string;
  Cpu?: number;
  Memory?: number;
  Metadata?: Dict<string,string>;
  EnvironmentVariables?: Dict<string,string>;
  Protocols?: List<Aspire.Hosting.Foundry/Aspire.Hosting.Foundry.HostedAgentProtocolVersion>;
}
```

## Fields

- `Description`: `string`
- `Cpu`: `number` `optional`
- `Memory`: `number` `optional`
- `Metadata`: `Dict<string,string>` `optional`
- `EnvironmentVariables`: `Dict<string,string>` `optional`
- `Protocols`: `HostedAgentProtocolVersion>` `optional`
