HostedAgentResourceBuilderExtensions
Classstaticnet10.0
Extension methods for adding hosted agent applications to the distributed application model.
namespace Aspire.Hosting;
public static class HostedAgentResourceBuilderExtensions{ // ...}6 members
Methods6
Section titled MethodsAsHostedAgent(IResourceBuilder<T>, HostedAgentProtocol, string)extensionats ignoredIResourceBuilder<T> Configures the resource to run and publish as a Microsoft Foundry hosted agent.
AsHostedAgent(IResourceBuilder<T>)extensionats ignoredIResourceBuilder<T> Configures the resource to run and publish as a Microsoft Foundry hosted agent using the Responses protocol version 2.0.0.
AsHostedAgent(IResourceBuilder<T>, IResourceBuilder<AzureCognitiveServicesProjectResource>, Action<HostedAgentConfiguration>)extensionats ignoredIResourceBuilder<T> Configures the resource to run and publish as a Microsoft Foundry hosted agent using the Responses protocol version 2.0.0.
AsHostedAgent(IResourceBuilder<T>, Action<HostedAgentConfiguration>)extensionats ignoredIResourceBuilder<T> Configures the resource to run and publish as a Microsoft Foundry hosted agent using the Responses protocol version 2.0.0.
AsHostedAgent(IResourceBuilder<T>, IResourceBuilder<AzureCognitiveServicesProjectResource>, HostedAgentProtocol, string, 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>, HostedAgentProtocol, string, 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.