Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

HostedAgentConfiguration

Handle
📦 Aspire.Hosting.Foundry v17.0.0-preview.1.26565.2

A configuration helper for hosted agents.

type HostedAgentConfiguration interface{}

Properties

propertyCpufloat64get · set
CPU allocation for each hosted agent instance, in vCPU cores.
Cpu() (float64, error)
SetCpu(value float64) HostedAgentConfiguration
propertyDescriptionstringget · set
The description of the hosted agent.
Description() (string, error)
SetDescription(value string) HostedAgentConfiguration
propertyEnvironmentVariables*Dict[string, string]get
Environment variables to set in the hosted agent container.
EnvironmentVariables() *Dict[string, string]
propertyMemoryfloat64get · set
Memory allocation for each hosted agent instance, in GiB. Must be 2x the CPU allocation.
Memory() (float64, error)
SetMemory(value float64) HostedAgentConfiguration
propertyMetadata*Dict[string, string]get
Additional metadata to associate with the hosted agent.
Metadata() *Dict[string, string]