Table of Contents

TTMSMCPSamplingMessages.AddUserImageMessage Method

Creates an image turn attributed to the user and appends it to the conversation.

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

Syntax

function AddUserImageMessage(const AData, AMimeType: string): Integer;

Parameters

Name Description
AData Image bytes, base64-encoded.
AMimeType Media type of the image, for example 'image/png'.

Returns

Index of the new turn in the conversation.