TTMSMCPSamplingMessage.CreateImageMessage Method
Creates an image turn attributed to the user.
API unit family: TMS.MCP.Sampling
Declaring type: TTMSMCPSamplingMessage
Syntax
class function CreateImageMessage(const AData, AMimeType: string): TTMSMCPSamplingMessage; static;
Parameters
| Name | Description |
|---|---|
AData |
Image bytes, base64-encoded. |
AMimeType |
Media type of the image, for example 'image/png'. |
Returns
A new turn, owned by the caller until it is added to a conversation.