Skip to main content
Table of Contents

TTMSMCPPromptMessage.Role Property

Who is speaking: user or assistant.

API unit family: TMS.MCP.Prompts Declaring type: TTMSMCPPromptMessage Type: string

Syntax

TMS.MCP.Prompts.hppPascalC++
property Role: string;
__property System::UnicodeString Role = {read=FRole, write=SetRole};

Remarks

Assigning anything else raises an invalid-parameters error, code -32602. The check ignores surrounding blanks and letter case, but the value is stored exactly as it was assigned, so those differences survive into the published message; assign the plain lowercase form.