class_docstr: Helper class to read a story file.
class_docstr_tok: ["Helper","class","to","read","a","story","file","."]
code: def _add_event(
      self, event_name: Text, parameters: Dict[Text, Any]
  ) -> None:
      parsed_events = self._parse_events(event_name, parameters)
      if parsed_events is None:
          parsed_events = []
  
      if self.current_step_builder is None:
          raise StoryParseError(
              "Failed to handle event '{}'. There is no "
              "started story block available. "
              "".format(event_name)
          )
  
      for p in parsed_events:
          if self._is_parsing_conditions:
              self.current_step_builder.add_event_as_condition(p)
          else:
              self.current_step_builder.add_event(p)
  
imports: import logging
  from pathlib import Path
  from typing import Optional, Dict, Text, List, Any, Union
  from rasa.shared.core.domain import Domain
  from rasa.shared.core.events import SlotSet, ActionExecuted, Event
  from rasa.shared.exceptions import RasaCoreException
  from rasa.shared.core.training_data.story_reader.story_step_builder import StoryStepBuilder
  from rasa.shared.core.training_data.structures import StoryStep
label_desc: Use image node_id 8 for calling the StoryReader obj's underlying member method code with example usage: obj._add_event(event_name, parameters) without return types