Skip to main content
Table of Contents

TTMSMCPPromptMessage.ToJSON Method

Builds the object published for this message.

API unit family: TMS.MCP.Prompts Declaring type: TTMSMCPPromptMessage

Syntax

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

Remarks

Both the content type and the text are always written, even when empty.

Returns

A new object holding the speaker and a nested content block carrying the content type and the text. The caller owns the returned object.