Skip to main content
Table of Contents

TTMSMCPSamplingMessages.AddUserMessage Method

Creates a text turn attributed to the user and appends it to the conversation.

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

Syntax

TMS.MCP.Sampling.hppPascalC++
function AddUserMessage(const AText: string): Integer;
int __fastcall AddUserMessage(const System::UnicodeString AText);

Parameters

Name Description
AText Text of the turn.

Returns

Index of the new turn in the conversation.