Skip to main content
Table of Contents

TTMSMCPSamplingResult.ToJSON Method

Builds the payload representation of the reply.

API unit family: TMS.MCP.Sampling Declaring type: TTMSMCPSamplingResult

Syntax

TMS.MCP.Sampling.hppPascalC++
function ToJSON: TJSONValue;
System::Json::TJSONValue* __fastcall ToJSON();

Returns

A new object holding the stop reason, the speaker and the serialized content, plus the model name when it has been set. For a provider-specific stop reason the original wording is written instead of the generic name. The caller owns the returned value.