class_docstr: Base class with convenience functions for setting up agents, dumping text, etc.
class_docstr_tok: ["Base","class","with","convenience","functions","for","setting","up","agents",",","dumping","text",",","etc","."]
docstr: Continuously dumps data from an agent until it's done.
docstr_tok: ["Continuously","dumps","data","from","an","agent","until","it","'s","done","."]
code: def dump_single_utt_per_episode_agent_text(
      self, class_type, round_opt, opt
  ):
      """
      Continuously dumps data from an agent until it's done.
      """
      agent = self.setup_agent_or_teacher(class_type, round_opt, opt)
      result = []
      while not agent.epoch_done():
          result.append(agent.act()["text"])
          agent.reset()
      return result
  
imports: import unittest
  import copy
  import parlai.core.tod.tod_core
  import parlai.core.tod.tod_test_utils.test_agents
label_desc: Use image node_id 2 for calling the TestTodAgentsAndTeachersBase obj's underlying member method code with example usage: obj.dump_single_utt_per_episode_agent_text(class_type, round_opt, opt) and returns: result