asText

Extracts all text content from the message, regardless of whether it's a simple string or an array of content parts.

For Text, returns the text directly. For Parts, concatenates all text from text-based content parts.

Return

The concatenated text content, or empty string if no text is available.