Message containing the result of a tool execution. This is sent back to the LLM after executing a tool.
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.