Table of Contents

TTMSFNCCloudAITools.ToJSON Method

Builds a JSON tool schema for the selected service.

API unit family: TMSFNCCloudAI Declaring type: TTMSFNCCloudAITools

Syntax

function ToJSON(Service: TTMSFNCCloudAIService; WebSearch: boolean = false): string;

Parameters

Name Description
Service Service whose tool schema format is generated.
WebSearch When True, web search support is included where the service supports it.

Returns

The generated JSON tool schema.