Skip to main content
Table of Contents

TTMSMCPSamplingMessage Class

Single turn of the conversation sent to the model, pairing a speaker with its payload.

API unit family: TMS.MCP.Sampling Inherits from: TPersistent

Syntax

GeneratedPascalC++
TTMSMCPSamplingMessage = class(TPersistent)
class PASCALIMPLEMENTATION TTMSMCPSamplingMessage : public System::Classes::TPersistent

Properties

Name Description
Content Payload of the turn.
Role Speaker the turn is attributed to. Defaults to smrUser.

Methods

Name Description
CreateAssistantMessage Creates a text turn attributed to the assistant.
CreateImageMessage Creates an image turn attributed to the user.
CreateUserMessage Creates a text turn attributed to the user.
ToJSON Builds the payload representation of the turn.