Skip to main content
Table of Contents

TTMSFNCCloudAI.RunThreadAndWait Method

Starts an assistant run and polls until it completes.

API unit family: TMSFNCCloudAI Declaring type: TTMSFNCCloudAI

Syntax

FMX.TMSFNCCloudAI.hppPascalC++
procedure RunThreadAndWait(const AThreadID, AAssistantID: string; const AComplete: TTMSFNCCloudAIRunEvent = nil);
void __fastcall RunThreadAndWait(const System::UnicodeString AThreadID, const System::UnicodeString AAssistantID, const _di_TTMSFNCCloudAIRunEvent AComplete = _di_TTMSFNCCloudAIRunEvent());

Parameters

Name Description
AThreadID Identifier of the thread to run.
AAssistantID Identifier of the assistant that handles the thread.
AComplete Optional callback invoked when the run completes.