# HostedAgentOptions

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

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>;
}
```

## Fields

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