Skip to content
DocsTry Aspire
DocsTry

asHostedAgentWithProtocol

Method
📦 Aspire.Hosting.Foundry v13.5.1-preview.1.26420.4
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
projectAzureCognitiveServicesProjectResource
protocolHostedAgentProtocol
protocolVersionstring
optionsHostedAgentOptionsoptional
IResourceWithEndpoints

Applies to

This method applies to the following types: