Skip to main content
Table of Contents

TTMSMCPPromptMessages.AddAssistantMessage Method

Appends a message spoken by the assistant, for example to seed the conversation with an expected form of answer.

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

Syntax

TMS.MCP.Prompts.hppPascalC++
function AddAssistantMessage(const Text: string): TTMSMCPPromptMessage;
TTMSMCPPromptMessage* __fastcall AddAssistantMessage(const System::UnicodeString Text);

Parameters

Name Description
Text Content of the message.

Returns

The new message, which stays owned by the collection.