TTMSMCPPrompt.Execute Method
Runs the handler and returns the conversation it produced.
API unit family: TMS.MCP.Prompts
Declaring type: TTMSMCPPrompt
Syntax
function Execute(const Args: array of TValue): TTMSMCPPromptMessages;
Remarks
No argument checking happens here — the values are passed straight through. Expand a prompt through the method that answers a client request when the declared arguments should be validated and converted first.
Parameters
| Name | Description |
|---|---|
Args |
Values for the declared arguments, in declaration order. |
Returns
The collection the handler produced, or a newly created empty collection when no handler is assigned or the handler returned nothing. Ownership is the caller's in both cases, so free the result once it has been published.