Skip to main content
Table of Contents

TTMSFNCCloudAITools.ToJSON Method

Builds a JSON tool schema for the selected service.

API unit family: TMSFNCCloudAI Declaring type: TTMSFNCCloudAITools

Syntax

FMX.TMSFNCCloudAI.hppPascalC++
function ToJSON(Service: TTMSFNCCloudAIService; WebSearch: boolean = false): string;
HIDESBASE System::UnicodeString __fastcall ToJSON(TTMSFNCCloudAIService Service, bool WebSearch = false);

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.