Table of Contents

TTMSMCPPromptArgumentBuilder Class

Describes one argument of a prompt through chained calls, then returns to the prompt being built.

API unit family: TMS.MCP.Prompts Inherits from: TPersistent

Syntax

TTMSMCPPromptArgumentBuilder = class(TPersistent)

Remarks

The argument is added to the prompt as soon as the builder is created, so the chain only fills in the values that follow. Close the chain with the step that returns to the prompt builder, which checks that the argument has a name. The argument stays owned by the prompt under construction; this builder owns nothing and has to be freed by whoever asked for it.

Properties

Name Description
Argument Argument being described, for the rare case where it has to be reached directly.

Methods

Name Description
Description Sets the explanation of what should be supplied for the argument.
Name Sets the key the value is supplied under.
Required Marks whether a value has to be supplied for the argument.