code: def load_directory(self, dir_path):
          
          self._log.info('Loading all AgentML files contained in: ' + dir_path)
  
          # Get a list of file paths
          aml_files = []
          for root, dirs, files in os.walk(dir_path):
              aml_files += ['{root}/{file}'.format(root=root, file=file)
                            for file in sorted(files) if file.endswith('.aml')]
  
          # Loop through the files and load each one individually
          for file in aml_files:
              self.load_file(file)
docs: Load all AgentML files contained in a specified directory
          :param dir_path: Path to the directory
          :type  dir_path: str