AddFunctionTool
Method
func (AzureCognitiveServicesProjectResource) AddFunctionTool( name string, functionName string, parametersJson string, options ...*AddFunctionToolOptions,) FunctionToolResourceSignature
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, options ...*AddFunctionToolOptions,) 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.options...*AddFunctionToolOptions Optional settings, described under Options.Options
Optional parameters are passed in a trailing options ...*AddFunctionToolOptions argument.
Description*stringA description of what the function does.StrictModeEnabled *boolWhether to enable strict mode for parameter validation.Returns
FunctionToolResource The resource builder.
Returns a handle; failures surface later via Err().
Applies to
This method applies to the following types: