Table of Contents

TTMSFNCCloudAI.RunThreadAndWait Method

Starts an assistant run and polls until it completes.

API unit family: TMSFNCCloudAI Declaring type: TTMSFNCCloudAI

Syntax

procedure RunThreadAndWait(const AThreadID, AAssistantID: string; const AComplete: TTMSFNCCloudAIRunEvent = nil);

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.