TTMSMCPSamplingMessageContent.ToJSON Method
Builds the payload representation for the current payload kind.
API unit family: TMS.MCP.Sampling
Declaring type: TTMSMCPSamplingMessageContent
Syntax
function ToJSON: TJSONValue;
Returns
A new object holding the kind marker and the members that belong to it: the text, the data with its media type, the tool invocation with its arguments, or the tool outcome. Tool arguments and tool outcome are copied rather than referenced. The caller owns the returned value.