TTMSMCPPromptBuilder Class
Describes a prompt through chained calls and hands over the finished prompt.
API unit family: TMS.MCP.Prompts
Inherits from: TPersistent
Syntax
TTMSMCPPromptBuilder = class(TPersistent)
Remarks
Each step returns the builder, so the calls can be chained and closed with the build step, which checks that the prompt is complete. The prompt that is built stays owned internally rather than by the caller, so hand it straight to a collection — which copies it — and do not free it. The builder itself has to be freed once the prompt has been handed over.
Methods
| Name | Description |
|---|---|
| AddArgument | Starts describing one more argument of the prompt. |
| AddIcon | Appends one icon descriptor to the icons published with the prompt. |
| Build | Checks that the prompt is complete and returns it. |
| Description | Sets the text that tells a model what the prompt is for. |
| Handler | Sets the code that turns the supplied argument values into the conversation. |
| Name | Sets the identifier clients ask for the prompt by. |
| Title | Sets the display name a client shows for the prompt. |