TTMSFNCCloudAI.CreateMessage Method
Adds a message to an assistant thread.
API unit family: TMSFNCCloudAI
Declaring type: TTMSFNCCloudAI
Syntax
procedure CreateMessage(const AThreadID, ARole, AContent: string; AFiles: TStrings; ATool: TTMSFNCCloudAIAssistantTool; const ACreated: TTMSFNCCloudAICreatedEvent = nil; const AFailed: TTMSFNCCloudAIRunEvent = nil);
void __fastcall CreateMessage(const System::UnicodeString AThreadID, const System::UnicodeString ARole, const System::UnicodeString AContent, System::Classes::TStrings* AFiles, TTMSFNCCloudAIAssistantTool ATool, const _di_TTMSFNCCloudAICreatedEvent ACreated = _di_TTMSFNCCloudAICreatedEvent(), const _di_TTMSFNCCloudAIRunEvent AFailed = _di_TTMSFNCCloudAIRunEvent());
Parameters
| Name | Description |
|---|---|
AThreadID |
Identifier of the thread that receives the message. |
ARole |
Role assigned to the message. |
AContent |
Message content. |
AFiles |
Optional list of file identifiers associated with the message. |
ATool |
Assistant tool capability associated with the message attachments. |
ACreated |
Optional callback invoked when the message is created. |
AFailed |
Optional callback invoked when the request fails. |