Skip to content
Docs Try Aspire

AzureHostedAgentResource Methods

Class Methods 3 members
A Microsoft Foundry hosted agent resource.
DeployAsync(PipelineStepContext, AzureCognitiveServicesProjectResource) Section titled DeployAsync(PipelineStepContext, AzureCognitiveServicesProjectResource) Task<AgentVersion>
Deploys the specified agent to the given Microsoft Foundry project.
public class AzureHostedAgentResource
{
public Task<AgentVersion> DeployAsync(
PipelineStepContext context,
AzureCognitiveServicesProjectResource project)
{
// ...
}
}
context PipelineStepContext
PublishAsync(ManifestPublishingContext) Section titled PublishAsync(ManifestPublishingContext) Task
Publishes the hosted agent during the manifest publishing phase.
public class AzureHostedAgentResource
{
public Task PublishAsync(
ManifestPublishingContext ctx)
{
// ...
}
}
ctx ManifestPublishingContext
Convert all dynamic values into concrete values for deployment.
public class AzureHostedAgentResource
{
public Task<HostedAgentConfiguration> ToHostedAgentConfigurationAsync(
PipelineStepContext context)
{
// ...
}
}
context PipelineStepContext