class_docstr: The implementation of OnlineTool based on (R)ecorder.
class_docstr_tok: ["The","implementation","of","OnlineTool","based","on","(","R",")","ecorder","."]
docstr: Get current `online` models
  
  Args:
      exp_name (str): the experiment name. If None, then use default_exp_name.
  
  Returns:
      list: a list of `online` models.
docstr_tok: ["Get","current","`","online","`","models","Args",":","exp_name","(","str",")",":","the","experiment","name",".","If","None",",","then","use","default_exp_name",".","Returns",":","list",":","a","list","of","`","online","`","models","."]
code: def online_models(self, exp_name: str = None) -> list:
      """
      Get current `online` models
  
      Args:
          exp_name (str): the experiment name. If None, then use default_exp_name.
  
      Returns:
          list: a list of `online` models.
      """
      exp_name = self._get_exp_name(exp_name)
      return list(
          list_recorders(
              exp_name,
              lambda rec: self.get_online_tag(rec) == self.ONLINE_TAG,
          ).values()
      )
  
imports: from typing import List, Union
  from qlib.log import get_module_logger
  from qlib.utils.exceptions import LoadObjectError
  from qlib.workflow.online.update import PredUpdater
  from qlib.workflow.recorder import Recorder
  from qlib.workflow.task.utils import list_recorders
label_desc: Use image node_id 5 for calling the OnlineToolR obj's underlying member method code with example usage: obj.online_models(exp_name) and returns: list