class_docstr: A class that keeps all conversation history.
class_docstr_tok: ["A","class","that","keeps","all","conversation","history","."]
code: def dict(self):
      if len(self.get_images()) > 0:
          return {
              "system": self.system,
              "roles": self.roles,
              "messages": [
                  [x, y[0] if type(y) is tuple else y]
                  for x, y in self.messages
              ],
              "offset": self.offset,
              "sep": self.sep,
              "sep2": self.sep2,
          }
      return {
          "system": self.system,
          "roles": self.roles,
          "messages": self.messages,
          "offset": self.offset,
          "sep": self.sep,
          "sep2": self.sep2,
      }
  
file_path: llama-vid/llamavid/conversation.py
imports: import dataclasses
  from enum import auto, Enum
  from typing import List, Tuple
label_desc: Use image node_id 7 for calling the Conversation obj's underlying member method code with example usage: obj.dict() and returns: dict, dict