TTMSMCPPromptBuilder.Handler Method
Sets the code that turns the supplied argument values into the conversation.
API unit family: TMS.MCP.Prompts
Declaring type: TTMSMCPPromptBuilder
Syntax
function Handler(const AHandler: TTMSMCPPromptMethod): TTMSMCPPromptBuilder;
Parameters
| Name | Description |
|---|---|
AHandler |
Handler to call. Must be assigned. |
Returns
The builder, so calls can be chained.
Exceptions
| Exception | Description |
|---|---|
EJsonRpcException |
Raised with invalid-parameters, error code -32602, when no handler is supplied. |