code: def render_messages(self, bot_name):
      for message in self.convo.messages:
          if not bot_name in message.user:
              yield {
                  "role": "user",
                  "name": message.user,
                  "content": message.text,
              }
          else:
              yield {
                  "role": "assistant",
                  "name": bot_name,
                  "content": message.text,
              }
  
file_path: gpt-discord-bot/src/base.py
imports: from dataclasses import dataclass
  from typing import Optional, List
label_desc: Use image node_id 3 for calling the Prompt obj's underlying member method code with example usage: obj.render_messages(bot_name) without return types