pub fn message_text(msg: &AgentMessage) -> String
Get the text content of an AgentMessage (all text parts joined).