Table of Contents

TTMSMCPPromptMessage.ToJSON Method

Builds the object published for this message.

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

Syntax

function ToJSON: TJSONValue;

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.