AzureCognitiveServicesProjectResource.addAzureFunctionTool

Method
📦 Aspire.Hosting.Foundry v17.0.0-preview.1.26567.5
interface AzureCognitiveServicesProjectResource {
// ... omitted for brevity
addAzureFunctionTool(
name: string,
functionName: string,
description: string,
parametersJson: string,
inputQueueEndpoint: string,
inputQueueName: string,
outputQueueEndpoint: string,
outputQueueName: string): AzureFunctionToolResource;
}

Signature

methodaddAzureFunctionToolbuilder
Adds 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): AzureFunctionToolResource
namestringThe name of the tool resource.
functionNamestringThe name of the Azure Function.
descriptionstringA description of what the function does.
parametersJsonstringThe JSON schema defining the function parameters as a JSON string.
inputQueueEndpointstringThe Azure Storage Queue endpoint for input binding.
inputQueueNamestringThe queue name for input binding.
outputQueueEndpointstringThe Azure Storage Queue endpoint for output binding.
outputQueueNamestringThe queue name for output binding.
AzureFunctionToolResource

Defined on

This method is defined on the following type: