# HostedAgentConfiguration Constructors

- Package: [Aspire.Hosting.Foundry](/reference/api/csharp/aspire.hosting.foundry.md)
- Type: [HostedAgentConfiguration](/reference/api/csharp/aspire.hosting.foundry/hostedagentconfiguration.md)
- Kind: `Constructors`
- Members: `1`

A configuration helper for hosted agents.

## HostedAgentConfiguration(string)

- Name: `Constructor(string)`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/becb48e2d61099e35ae336d527d3875e928d6594/src/Aspire.Hosting.Foundry/HostedAgent/HostedAgentConfiguration.cs#L19-L111)

A configuration helper for hosted agents.

```csharp
public class HostedAgentConfiguration
{
    public HostedAgentConfiguration(
        string image)
    {
        // ...
    }
}
```

## Parameters

- `image` (`string`)

## Remarks

This type is used instead of `Agents.ProjectsAgentVersionCreationOptions` to provide a strongly typed configuration surface for hosted agent definitions. When used from polyglot app hosts, only the ATS-compatible properties are exported; Azure SDK-specific members remain .NET-only.
