TTMSMCPPromptMessage Class
One turn of the conversation an expanded prompt hands back.
API unit family: TMS.MCP.Prompts
Inherits from: TCollectionItem
Syntax
TTMSMCPPromptMessage = class(TCollectionItem)
Remarks
A message pairs the speaker with a single block of content. Content is carried as text; the content type says how that text should be read.
Properties
| Name | Description |
|---|---|
| ContentType | How the content should be read, for example text. |
| Role | Who is speaking: user or assistant. |
| Text | The message content itself. May be empty, and is then published as empty text. |
Methods
| Name | Description |
|---|---|
| ToJSON | Builds the object published for this message. |