Table of Contents

TTMSMCPCustomClientConnection.OnPromptsGet Event

Occurs when a prompt retrieval returns its description and messages.

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

Syntax

OnPromptsGet: TTMSMCPClientServerPromptResponseEvent;

Remarks

Raised on the main thread. The handler may inspect the messages but cannot change them.

Parameters

Name Description
Sender Connection that received the result.
AId Identifier of the request the result answers, for matching it to the retrieval that was issued.
ADescription Description the server supplied for the prompt, empty when it supplied none.
AContent Array of prompt messages. It belongs to the response being processed and is released as soon as the handler returns, so copy anything that must outlive the call.
AIsError True when the server marked the result as an error result, False when the retrieval succeeded.