Skip to main content
Table of Contents

TTMSFNCCloudAI.CreateAssistant Method

Creates an assistant with instructions and tool capabilities.

API unit family: TMSFNCCloudAI Declaring type: TTMSFNCCloudAI

Syntax

FMX.TMSFNCCloudAI.hppPascalC++
procedure CreateAssistant(AName, AInstruction: string; ATool: TTMSFNCCloudAIAssistantTools = [aitFileSearch]; const ACreated: TTMSFNCCloudAICreatedEvent = nil);
void __fastcall CreateAssistant(System::UnicodeString AName, System::UnicodeString AInstruction, TTMSFNCCloudAIAssistantTools ATool = (TTMSFNCCloudAIAssistantTools() << TTMSFNCCloudAIAssistantTool::aitFileSearch), const _di_TTMSFNCCloudAICreatedEvent ACreated = _di_TTMSFNCCloudAICreatedEvent());

Parameters

Name Description
AName Assistant display name.
AInstruction Instructions assigned to the assistant.
ATool Assistant tool capabilities to enable.
ACreated Optional callback invoked with the created assistant identifier.