HostedAgentResourceBuilderExtensions
Class static net8.0
Extension methods for adding hosted agent applications to the distributed application model.
namespace Aspire.Hosting;
public static class HostedAgentResourceBuilderExtensions{ // ...}Methods3
Section titled MethodsAsHostedAgent(IResourceBuilder<T>)extensionats ignoredIResourceBuilder<T> Configures the resource to run locally as a Microsoft Foundry hosted agent.
AsHostedAgent(IResourceBuilder<T>, IResourceBuilder<AzureCognitiveServicesProjectResource>, Action<HostedAgentConfiguration>)extensionats ignoredIResourceBuilder<T> Configures the resource to run and publish as a hosted agent in Microsoft Foundry, with full programmatic access to the underlying
HostedAgentConfiguration (including Azure SDK-specific options such as tools and content filters). AsHostedAgent(IResourceBuilder<T>, Action<HostedAgentConfiguration>)extensionats ignoredIResourceBuilder<T> Configures the resource to run and publish as a hosted agent in Microsoft Foundry, with full programmatic access to the underlying
HostedAgentConfiguration. The Foundry project is resolved automatically in publish mode.