Skip to content
DocsTry Aspire
DocsTry

addFunctionTool

Method
📦 Aspire.Hosting.Foundry v13.4.0-preview.1.26281.18
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
namestring
functionNamestring
parametersJsonstring
descriptionstringoptional
strictModeEnabledbooleanoptional
FunctionToolResource

Applies to

This method applies to the following types: