Skip to content
DocsTry Aspire
DocsTry

HostedAgentConfiguration

Handle
📦 Aspire.Hosting.Foundry v13.4.0-preview.1.26281.18
interface HostedAgentConfiguration {
cpu: number;
description: string;
readonly environmentVariables: Dict<string,string>;
memory: number;
readonly metadata: Dict<string,string>;
}

Properties

propertycpunumberget · set
CPU allocation for each hosted agent instance, in vCPU cores.
propertydescriptionstringget · set
The description of the hosted agent.
propertyenvironmentVariablesDict<string,string>get
Environment variables to set in the hosted agent container.
propertymemorynumberget · set
Memory allocation for each hosted agent instance, in GiB. Must be 2x the CPU allocation.
propertymetadataDict<string,string>get
Additional metadata to associate with the hosted agent.