# 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/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Aspire.Hosting.Foundry/HostedAgent/HostedAgentConfiguration.cs#L18-L110)

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.
