Skip to content
Docs Try Aspire

AzurePromptAgentResource Methods

Class Methods 2 members
A Microsoft Foundry prompt agent resource.
DeployAsync(PipelineStepContext, AzureCognitiveServicesProjectResource) Section titled DeployAsync(PipelineStepContext, AzureCognitiveServicesProjectResource) Task<AgentVersion>
Deploys the specified agent to the given Microsoft Foundry project.
public class AzurePromptAgentResource
{
public Task<AgentVersion> DeployAsync(
PipelineStepContext context,
AzureCognitiveServicesProjectResource project)
{
// ...
}
}
context PipelineStepContext
PublishAsync(ManifestPublishingContext) Section titled PublishAsync(ManifestPublishingContext) Task
Publishes the agent during the manifest publishing phase.
public class AzurePromptAgentResource
{
public Task PublishAsync(
ManifestPublishingContext ctx)
{
// ...
}
}
ctx ManifestPublishingContext