HostedAgentResourceBuilderExtensions
Class static net8.0
Extension methods for adding hosted agent applications to the distributed application model.
namespace Aspire.Hosting;
public static class HostedAgentResourceBuilderExtensions{ // ...} 7 members
Methods7
Section titled MethodsAddAndPublishPromptAgent(IResourceBuilder<AzureCognitiveServicesProjectResource>, IResourceBuilder<FoundryDeploymentResource>, string, string?)extensionats exportIResourceBuilder<AzurePromptAgentResource> Publish a simple prompt agent in Microsoft Foundry. If a project resource is not provided, the method will attempt to find an existing Microsoft Foundry project resource in the application model.
AsHostedAgent(IResourceBuilder<T>, Action<HostedAgentConfiguration>)extensionats ignoredIResourceBuilder<T> In both run and publish modes, build, deploy, and run the containerized agent as a hosted agent in Microsoft Foundry.
AsHostedAgent(IResourceBuilder<T>, IResourceBuilder<AzureCognitiveServicesProjectResource>, Action<HostedAgentConfiguration>)extensionats ignoredIResourceBuilder<T> In both run and publish modes, build, deploy, and run the containerized agent as a hosted agent in Microsoft Foundry.
PublishAsHostedAgent(IResourceBuilder<T>, Action<HostedAgentConfiguration>)extensionats ignoredIResourceBuilder<T> Publish the containerized agent as a hosted agent in Microsoft Foundry. If a project resource is not provided, the method will attempt to find an existing Microsoft Foundry project resource in the application model. If none exists, a new project resource (and its parent account resource) will be created automatically.
PublishAsHostedAgent(IResourceBuilder<T>, IResourceBuilder<AzureCognitiveServicesProjectResource>, Action<HostedAgentConfiguration>)extensionats exportIResourceBuilder<T> Publish the containerized agent as a hosted agent in Microsoft Foundry. If a project resource is not provided, the method will attempt to find an existing Microsoft Foundry project resource in the application model. If none exists, a new project resource (and its parent account resource) will be created automatically.
RunAsHostedAgent(IResourceBuilder<T>, Action<HostedAgentConfiguration>)extensionats ignoredIResourceBuilder<T> In run mode, build, deploy, and run the containerized agent as a hosted agent in Microsoft Foundry.
RunAsHostedAgent(IResourceBuilder<T>, IResourceBuilder<AzureCognitiveServicesProjectResource>, Action<HostedAgentConfiguration>)extensionats ignoredIResourceBuilder<T> In run mode, build, deploy, and run the containerized agent as a hosted agent in Microsoft Foundry.