Represents a single message in a chat interaction.
Converts the message to a JSON object.
The text content of the message.
The role of the message sender (e.g., "user", "assistant").
See Implementation
Represents a single message in a chat interaction.