The textual content of the message.
A unique identifier for this specific message.
OptionalmetadataOptional metadata associated with the message (e.g., related observation IDs, tool call info, UI state).
The role of the sender (User, AI, System, or Tool).
The identifier of the conversation thread this message belongs to.
A Unix timestamp (in milliseconds) indicating when the message was created.
Represents a single message within a conversation thread.
ConversationMessage