Table of Contents

TTMSMCPSamplingResult.ToJSON Method

Builds the payload representation of the reply.

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

Syntax

function ToJSON: TJSONValue;

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.