class_docstr: Logs actions/observations in a world and saves in a given format.
class_docstr_tok: ["Logs","actions\/observations","in","a","world","and","saves","in","a","given","format","."]
docstr: Add messages from a `parley()` to the current episode of logs.
  
  :param acts: list of acts from a `.parley()` call
docstr_tok: ["Add","messages","from","a","`","parley","(",")","`","to","the","current","episode","of","logs",".",":","param","acts",":","list","of","acts","from","a","`",".parley","(",")","`","call"]
code: def _add_msgs(self, acts, idx=0):
      """
      Add messages from a `parley()` to the current episode of logs.
  
      :param acts: list of acts from a `.parley()` call
      """
      msgs = []
      for act in acts:
          # padding examples in the episode[0]
          if not isinstance(act, Message):
              act = Message(act)
          if act.is_padding():
              break
          if not self.keep_all:
              msg = {f: act[f] for f in self.keep_fields if f in act}
          else:
              msg = act
          msgs.append(msg)
  
      if len(msgs) == 0:
          return
      self._current_episodes.setdefault(idx, [])
      self._current_episodes[idx].append(msgs)
  
imports: from typing import Optional
  from parlai.core.params import ParlaiParser
  from parlai.core.opt import Opt
  from parlai.core.worlds import BatchWorld, DynamicBatchWorld
  from parlai.utils.misc import msg_to_str
  from parlai.utils.conversations import Conversations
  from parlai.utils.io import PathManager
  import parlai.utils.logging
  from parlai.core.message import Message
  import copy
  from tqdm import tqdm
label_desc: Use image node_id 6 for calling the WorldLogger obj's underlying member method code with example usage: obj._add_msgs(acts, idx) without return types