AzureCognitiveServicesProjectResource.addFunctionTool

Method
📦 Aspire.Hosting.Foundry v17.0.0-preview.1.26567.5
interface AzureCognitiveServicesProjectResource {
// ... omitted for brevity
addFunctionTool(
name: string,
functionName: string,
parametersJson: string,
description?: string,
strictModeEnabled?: boolean): FunctionToolResource;
}

Signature

methodaddFunctionToolbuilder
Adds 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): FunctionToolResource
namestringThe name of the tool resource.
functionNamestringThe name of the function.
parametersJsonstringThe JSON schema defining the function parameters as a JSON string.
descriptionstringoptionalA description of what the function does.
strictModeEnabledbooleanoptionalWhether to enable strict mode for parameter validation.
FunctionToolResource

Defined on

This method is defined on the following type: