Table of Contents

TTMSMCPSamplingMessage.CreateAssistantMessage Method

Creates a text turn attributed to the assistant.

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

Syntax

class function CreateAssistantMessage(const AText: string): TTMSMCPSamplingMessage; static;

Parameters

Name Description
AText Text of the turn.

Returns

A new turn, owned by the caller until it is added to a conversation. Use it to replay an earlier model reply as part of the history.