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

function AddUserMessage(const AText: string): Integer;

Parameters

Name Description
AText Text of the turn.

Returns

Index of the new turn in the conversation.