genai:ChatMessage
A message in a chat conversation with role and content.
Represents a single message in a conversation. Role is 'user', 'assistant', or 'system'.
Properties
genai:content (required, max 1)
Text content.
Chat message must have exactly one content property (string).
For Completion: the generated text output. For ChatMessage: the message text.
genai:role (required, max 1)
The role of the message sender.
Chat message must have exactly one role: 'user', 'assistant', or 'system'.
Must be 'user', 'assistant', or 'system'.