Table of Contents

TTMSMCPCustomClientConnection.OnPromptsListChanged Event

Occurs when the server reports that its prompt catalog changed.

API unit family: TMS.MCP.Client.Connection Declaring type: TTMSMCPCustomClientConnection

Syntax

OnPromptsListChanged: TTMSMCPClientServerChangeEvent;

Remarks

Raised on the main thread. The cached catalog is only discarded and requested again when the handler asks for a refresh, so without a handler the connection keeps serving the catalog it already has.

Parameters

Name Description
Sender Connection that received the notification.
ARefresh Whether the cached prompt catalog is discarded and requested again. It enters False, so nothing is refetched unless the handler sets it to True.