asHostedAgentWithProtocol

Method
📦 Aspire.Hosting.Foundry v17.0.0-preview.1.26567.5
interface ContainerResource {
// ... omitted for brevity
asHostedAgentWithProtocol(
project: AzureCognitiveServicesProjectResource,
protocol: HostedAgentProtocol,
protocolVersion: string,
options?: HostedAgentOptions): IResourceWithEndpoints;
}

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): IResourceWithEndpoints
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.
optionsHostedAgentOptionsoptionalOptional hosted agent deployment options. Options apply in publish mode.
IResourceWithEndpoints

Applies to

This method applies to the following types: