AzureCognitiveServicesProjectResource.addFunctionTool
Method
interface AzureCognitiveServicesProjectResource { // ... omitted for brevity addFunctionTool( name: string, functionName: string, parametersJson: string, description?: string, strictModeEnabled?: boolean): FunctionToolResource;}Signature
method
addFunctionTool builderAdds 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): FunctionToolResourceParameters
namestringThe name of the tool resource.functionName stringThe name of the function.parametersJson stringThe JSON schema defining the function parameters as a JSON string.descriptionstringoptionalA description of what the function does.strictModeEnabled booleanoptionalWhether to enable strict mode for parameter validation.Returns
FunctionToolResource Defined on
This method is defined on the following type: