Watch Aspire live streamsDocsTry Aspire
Watch Aspire live streamsDocsTry

asHostedAgent

Method
📦 Aspire.Hosting.Foundry v13.6.0-preview.1.26478.8
interface ContainerResource {
// ... omitted for brevity
asHostedAgent(
project: AzureCognitiveServicesProjectResource,
options?: HostedAgentOptions): IResourceWithEndpoints;
}

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): IResourceWithEndpoints
projectAzureCognitiveServicesProjectResource
optionsHostedAgentOptionsoptional
IResourceWithEndpoints

Applies to

This method applies to the following types: