trinity.common.rewards.utils module# trinity.common.rewards.utils.to_rm_gallery_messages(messages: List[Dict[str, Any]]) → Any[源代码]# Converts string list to structured ChatMessage list for debugging. 参数: messages -- List of alternating user/assistant messages 返回: List of structured ChatMessage objects