trinity.common.rewards.utils module# trinity.common.rewards.utils.to_rm_gallery_messages(messages: List[Dict[str, Any]]) → Any[source]# Converts string list to structured ChatMessage list for debugging. Parameters: messages – List of alternating user/assistant messages Returns: List of structured ChatMessage objects