code: def add_reply(self, text, role="assistant", name=None):
      msg = {"role": role, "content": text}
      if name:
          msg["name"] = name
      self.agent.turns.append()
  
file_path: ParlAI/parlai/agents/openai_chat_completions/openai_chat_completions.py
imports: from typing import Optional
  from parlai.core.params import ParlaiParser
  from parlai.core.opt import Opt
  from parlai.core.agents import Agent
  from parlai.core.message import Message
label_desc: Use image node_id 2 for calling the FakeHistory obj's underlying member method code with example usage: obj.add_reply(text, role, name) without return types