AzureCognitiveServicesProjectResource.AddFunctionTool
Method
type AzureCognitiveServicesProjectResource interface { // ... omitted for brevity AddFunctionTool( name string, functionName string, parametersJson string, options ...*AddFunctionToolOptions, ) 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, 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().
Defined on
This method is defined on the following type: