Skip to content
DocsTry Aspire
DocsTry

FunctionToolResource Constructors

ClassConstructors1 member
A Foundry tool resource that enables an agent to call a user-defined function.
Constructor(string, AzureCognitiveServicesProjectResource, string, BinaryData, string?, bool?)Section titled Constructor(string, AzureCognitiveServicesProjectResource, string, BinaryData, string?, bool?)
Creates a new instance of the FunctionToolResource class.
public sealed class FunctionToolResource
{
public FunctionToolResource(
string name,
AzureCognitiveServicesProjectResource project,
string functionName,
BinaryData parameters,
string? description = null,
bool? strictModeEnabled = null)
{
// ...
}
}
namestringThe name of the tool resource.
projectAzureCognitiveServicesProjectResourceThe parent Foundry project resource.
functionNamestringThe name of the function.
parametersBinaryDataThe JSON schema defining the function parameters.
descriptionstring?optionalA description of what the function does.
strictModeEnabledbool?optionalWhether to enable strict mode for parameter validation.