Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

AsHostedAgent

Method
📦 Aspire.Hosting.Foundry v17.0.0-preview.1.26565.2
func (ResourceWithEndpoints) AsHostedAgent(
project AzureCognitiveServicesProjectResource,
options ...*HostedAgentOptions,
) ResourceWithEndpoints

Signature

methodAsHostedAgentbuilder
Configures the resource to run and publish as a hosted agent in Microsoft Foundry using the Responses protocol version 2.0.0.
AsHostedAgent(
project AzureCognitiveServicesProjectResource,
options ...*HostedAgentOptions,
) ResourceWithEndpoints
projectAzureCognitiveServicesProjectResourceThe Microsoft Foundry project the hosted agent is deployed into.
options...*HostedAgentOptionsOptional settings, described under Options.

Optional parameters are passed as the existing *HostedAgentOptions struct.

ResourceWithEndpoints

The resource builder.

Returns a handle; failures surface later via Err().

Applies to

This method applies to the following types: