Skip to content
Docs Try Aspire
Docs Try

AzureCognitiveServicesProjectResource.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

method addFunctionTool builder
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
name string
functionName string
parametersJson string
description string optional
strictModeEnabled boolean optional
FunctionToolResource

Defined on

This method is defined on the following type: