HostedAgentConfiguration
Class net8.0
A configuration helper for hosted agents.
namespace Aspire.Hosting.Foundry;
public class HostedAgentConfiguration{ // ...} 13 members
Remarks
Section titled Remarks This type is used instead of
Projects.AgentVersionCreationOptions 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. Constructors1
Section titled ConstructorsProperties11
Section titled PropertiesContainerProtocolVersionsget; initats ignoredIList<ProtocolVersionRecord> The protocols that the agent supports for ingress communication of the containers.
ContentFilterConfigurationget; setats ignoredContentFilterConfiguration? Configuration for Responsible AI (RAI) content filtering and safety features.
Cpuget; setdecimal CPU allocation for each hosted agent instance, in vCPU cores.
CpuStringgetats ignoredstring CPU allocation as a string.
Descriptionget; setstring The description of the hosted agent.
EnvironmentVariablesget; initIDictionary<string, string> Environment variables to set in the hosted agent container.
Imageget; setats ignoredstring The fully qualified container image name for the hosted agent.
Memoryget; setdecimal Memory allocation for each hosted agent instance, in GiB. Must be 2x the CPU allocation.
MemoryStringgetats ignoredstring Memory allocation as a string.
Metadataget; initIDictionary<string, string> Additional metadata to associate with the hosted agent.
Toolsget; initats ignoredIList<AgentTool> Tools available to the hosted agent.