Aspire.Hosting.Foundry
Official
📦 Aspire.Hosting.Foundryv13.4.0-preview.1.26281.1835Functions
23Types
23 types and 31 members
Types
handle
AzureAISearchToolResource1 membershandle
AzureCognitiveServicesProjectConnectionResourcehandle
AzureCognitiveServicesProjectResource25 membershandle
AzureFunctionToolResourcehandle
AzurePromptAgentResource9 membershandle
BingGroundingConnectionResourcehandle
BingGroundingToolResource1 membershandle
CodeInterpreterToolResourcehandle
ComputerToolResourcehandle
FabricToolResourcehandle
FileSearchToolResourcehandle
FoundryDeploymentResource16 memberstype
FoundryModel3 fieldshandle
FoundryResource3 membershandle
FoundryToolResourcehandle
FunctionToolResourcehandle
HostedAgentConfiguration8 memberstype
HostedAgentOptions6 fieldstype
HostedAgentProtocolVersion2 fieldshandle
ImageGenerationToolResourcehandle
SharePointToolResourcehandle
WebSearchToolResourceFunctions
method
addAISearchToolbuilderAdds an Azure AI Search tool to a Microsoft Foundry project, enabling agents to ground their responses using data from an Azure AI Search index.
addAISearchTool(name: string, indexName?: string): AzureAISearchToolResourcemethod
addAzureFunctionToolbuilderAdds an Azure Function tool to a Microsoft Foundry project, enabling agents to invoke a serverless Azure Function with queue-based input/output bindings.
addAzureFunctionTool(name: string, functionName: string, description: string, parametersJson: string, inputQueueEndpoint: string, inputQueueName: string, outputQueueEndpoint: string, outputQueueName: string): AzureFunctionToolResourcemethod
addBingGroundingConnectionbuilderAdds a Grounding with Bing Search connection to a Microsoft Foundry project.
addBingGroundingConnection(name: string, bingResourceId: string): BingGroundingConnectionResourcemethod
addBingGroundingConnectionFromParameterbuilderAdds a Grounding with Bing Search connection to a Microsoft Foundry project using a parameter resource for the Bing resource ID.
addBingGroundingConnectionFromParameter(name: string, bingResourceId: ParameterResource): BingGroundingConnectionResourcemethod
addBingGroundingToolbuilderAdds a Bing Grounding tool to a Microsoft Foundry project, enabling agents to ground their responses using Bing Search results.
addBingGroundingTool(name: string): BingGroundingToolResourcemethod
addCapabilityHostbuilderAdds a capability host to the Microsoft Foundry project.
addCapabilityHost(name: string): AzureCognitiveServicesProjectResourcemethod
addCodeInterpreterToolbuilderAdds a Code Interpreter tool to a Microsoft Foundry project, enabling agents to write and run Python code in a sandboxed environment for data analysis, math, and chart generation.
addCodeInterpreterTool(name: string): CodeInterpreterToolResourcemethod
addComputerUseToolbuilderAdds a Computer Use tool to a Microsoft Foundry project, enabling agents to interact with a computer desktop by taking screenshots, moving the mouse, clicking, and typing.
addComputerUseTool(name: string, displayWidth?: number, displayHeight?: number, environment?: string): ComputerToolResourcemethod
addConnectionbuilderAdds a connection to a Microsoft Foundry project.
addConnection(resource: AzureKeyVaultResource): AzureCognitiveServicesProjectConnectionResourcemethod
addContainerRegistryConnectionbuilderAdds a container registry connection to the Microsoft Foundry project.
addContainerRegistryConnection(registry: AzureContainerRegistryResource): AzureCognitiveServicesProjectConnectionResourcemethod
addCosmosConnectionbuilderAdds CosmosDB to a project as a connection
addCosmosConnection(db: AzureCosmosDBResource): AzureCognitiveServicesProjectConnectionResourcemethod
addDeploymentbuilderAdds a Microsoft Foundry deployment resource to a Microsoft Foundry resource.
addDeployment(name: string, model: FoundryModel|string, modelVersion?: string, format?: string): FoundryDeploymentResourcemethod
addFabricToolbuilderAdds a Microsoft Fabric data agent tool to a Microsoft Foundry project, enabling agents to query data through Fabric data agents.
addFabricTool(name: string, projectConnectionIds: string[]): FabricToolResourcemethod
addFileSearchToolbuilderAdds a File Search tool to a Microsoft Foundry project, enabling agents to search uploaded files and proprietary documents using vector search.
addFileSearchTool(name: string, vectorStoreIds: string[]): FileSearchToolResourcemethod
addFoundrybuilderAdds a Microsoft Foundry resource to the application model.
addFoundry(name: string): FoundryResourcemethod
addFunctionToolbuilderAdds a function calling tool to a Microsoft Foundry project, enabling agents to call application-defined functions with structured parameters.
addFunctionTool(name: string, functionName: string, parametersJson: string, description?: string, strictModeEnabled?: boolean): FunctionToolResourcemethod
addImageGenerationToolbuilderAdds an Image Generation tool to a Microsoft Foundry project, enabling agents to generate and edit images.
addImageGenerationTool(name: string): ImageGenerationToolResourcemethod
addKeyVaultConnectionbuilderAdds a Key Vault connection to the Microsoft Foundry project.
addKeyVaultConnection(keyVault: AzureKeyVaultResource): AzureCognitiveServicesProjectConnectionResourcemethod
addModelDeploymentbuilderAdds a model deployment to the parent Microsoft Foundry resource.
addModelDeployment(name: string, model: FoundryModel|string, modelVersion?: string, format?: string): FoundryDeploymentResourcemethod
addProjectbuilderAdds a Microsoft Foundry project resource to the application model. This will also attach the project as a deployment target for agents.
addProject(name: string): AzureCognitiveServicesProjectResourcemethod
addPromptAgentbuilderAdds a prompt agent to a Microsoft Foundry project with the specified tools.
addPromptAgent(name: string, model: FoundryDeploymentResource, instructions?: string): AzurePromptAgentResourcemethod
addSearchConnectionbuilderAdds an Azure AI Search connection to a Microsoft Foundry project.
addSearchConnection(search: AzureSearchResource): AzureCognitiveServicesProjectConnectionResourcemethod
addSharePointToolbuilderAdds a SharePoint grounding tool to a Microsoft Foundry project, enabling agents to search data from SharePoint sites configured as Foundry project connections.
addSharePointTool(name: string, projectConnectionIds: string[]): SharePointToolResourcemethod
addStorageConnectionbuilderAdds an Azure Storage account to a project as a connection.
addStorageConnection(storage: AzureStorageResource): AzureCognitiveServicesProjectConnectionResourcemethod
addWebSearchToolbuilderAdds a Web Search tool to a Microsoft Foundry project, enabling agents to retrieve real-time information from the public web and return answers with inline citations.
addWebSearchTool(name: string): WebSearchToolResourcemethod
asHostedAgentbuilderConfigures the resource to run and publish as a hosted agent in Microsoft Foundry, targeting the specified Foundry project.
asHostedAgent(project: AzureCognitiveServicesProjectResource, options?: HostedAgentOptions): IResourceWithEndpointsmethod
runAsFoundryLocalbuilderAdds a Foundry Local resource to the distributed application builder.
runAsFoundryLocal(): FoundryResourcemethod
withAppInsightsbuilderAdds an Application Insights resource to the Microsoft Foundry project, overriding the default (which is to create a new Application Insights resource).
withAppInsights(appInsights: AzureApplicationInsightsResource): AzureCognitiveServicesProjectResourcemethod
withCapabilityHostbuilderAssociates a supported resource with a capability host on a Microsoft Foundry project.
withCapabilityHost(resource: FoundryResource): AzureCognitiveServicesProjectResourcemethod
withFoundryRoleAssignmentsbuilderAssigns the specified roles to the given resource, granting it the necessary permissions on the target Microsoft Foundry resource. This replaces the default role assignments for the resource.
withFoundryRoleAssignments(target: FoundryResource, roles: FoundryRole[]): IResourcemethod
withKeyVaultbuilderAdds a Key Vault connection to the Microsoft Foundry project.
withKeyVault(keyVault: AzureKeyVaultResource): AzureCognitiveServicesProjectResourcemethod
withPropertiesbuilderAllows setting the properties of a Microsoft Foundry Deployment resource.
withProperties(configure: (obj: FoundryDeploymentResource) => Promise<void>): FoundryDeploymentResourcemethod
withReferencebuilderLinks an Azure AI Search tool to a backing search resource.
withReference(search: AzureSearchResource): AzureAISearchToolResourcemethod
withReferencebuilderLinks a Bing Grounding tool to a Bing Search resource or connection.
withReference(bingReference: ParameterResource): BingGroundingToolResourcemethod
withToolbuilderAdds a tool to a prompt agent.
withTool(tool: FoundryToolResource): AzurePromptAgentResource