Message sent by the user - supports multimodal content
Primary constructor for multimodal messages
Convenience constructor for text-only messages (backward compatibility)
Maintains backward compatibility with HasContent interface. Returns concatenated text from all TextParts.
Returns all image parts in this message.
Returns true if this message contains any non-text content.
Returns the text content of the message by concatenating all TextParts.
Convert one of our messages to a Spring AI message with multimodal support.