Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

AsHostedAgentWithProtocol

Method
📦 Aspire.Hosting.Foundry v17.0.0-preview.1.26565.2
func (ResourceWithEndpoints) AsHostedAgentWithProtocol(
project AzureCognitiveServicesProjectResource,
protocol HostedAgentProtocol,
protocolVersion string,
options ...*HostedAgentOptions,
) ResourceWithEndpoints

Signature

methodAsHostedAgentWithProtocolbuilder
Configures the resource to run and publish as a hosted agent in Microsoft Foundry using an explicit protocol and version.
AsHostedAgentWithProtocol(
project AzureCognitiveServicesProjectResource,
protocol HostedAgentProtocol,
protocolVersion string,
options ...*HostedAgentOptions,
) ResourceWithEndpoints
projectAzureCognitiveServicesProjectResourceThe Microsoft Foundry project the hosted agent is deployed into.
protocolHostedAgentProtocolThe protocol exposed by the hosted agent container.
protocolVersionstringThe version of the protocol exposed by the hosted agent container.
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: