Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

AddAzureFunctionTool

Method
📦 Aspire.Hosting.Foundry v17.0.0-preview.1.26565.2
func (AzureCognitiveServicesProjectResource) 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

The resource builder.

Returns a handle; failures surface later via Err().

Applies to

This method applies to the following types: