Table of Contents

TTMSMCPPromptAttribute Class

Marks a method as the provider of a prompt.

API unit family: TMS.MCP.Attributes Inherits from: TTMSMCPCustomAttribute Implements: ITMSMCPPromptAttribute

Syntax

TTMSMCPPromptAttribute = class(TTMSMCPCustomAttribute, ITMSMCPPromptAttribute)

Remarks

The method returns the prompt messages, and each of its parameters is published as a prompt argument that may carry its own name, description, optional and completion attributes. Be aware of a current limitation: a method marked only as a prompt is registered and listed, but is never invoked, because the generated provider resolves the method through the tool dispatcher and that lookup only accepts a method that also carries the tool attribute. Apply the tool attribute as well for the provider to actually run.

Used by