code: def write_to_history(**kwargs):
          
          from hyperstream import HyperStream
          hs = HyperStream(loglevel=logging.CRITICAL, file_logger=False, console_logger=False, mqtt_logger=None)
          if hs.current_session:
              hs.current_session.write_to_history(**kwargs)
docs: Write to the history of executions of this tool
  
          :param kwargs: keyword arguments describing the executions
          :return: None