HostedAgentConfiguration
Classnet10.0
A configuration helper for hosted agents.
namespace Aspire.Hosting.Foundry;
public class HostedAgentConfiguration{ // ...}12 members
Remarks
Section titled Remarks This type is used instead of
Agents.ProjectsAgentVersionCreationOptions to provide a strongly typed configuration surface for hosted agent definitions. When used from polyglot AppHosts, only the ATS-compatible properties are exported; Azure SDK-specific members remain .NET-only. Constructors1
Section titled Constructors A configuration helper for hosted agents.
Properties11
Section titled PropertiesContentFilterConfiguration? Configuration for Responsible AI (RAI) content filtering and safety features.
EnvironmentVariables get; initIDictionary<string, string> Environment variables to set in the hosted agent container.
Memoryget; setdecimal Memory allocation for each hosted agent instance, in GiB. Must be 2x the CPU allocation.
Metadataget; initIDictionary<string, string> Additional metadata to associate with the hosted agent.
IList<ProtocolVersionRecord> The protocols that the agent supports for ingress communication of the containers.