class_docstr: Helper class to read a story file.
class_docstr_tok: ["Helper","class","to","read","a","story","file","."]
docstr: Constructor for the StoryReader.
  
  Args:
      domain: Domain object.
      source_name: Name of the training data source.
docstr_tok: ["Constructor","for","the","StoryReader",".","Args",":","domain",":","Domain","object",".","source_name",":","Name","of","the","training","data","source","."]
code: def __init__(
      self,
      domain: Optional[Domain] = None,
      source_name: Optional[Text] = None,
  ) -> None:
      """Constructor for the StoryReader.
  
      Args:
          domain: Domain object.
          source_name: Name of the training data source.
      """
      self.story_steps: List[StoryStep] = []
      self.current_step_builder: Optional[StoryStepBuilder] = None
      self.domain = domain
      self.source_name = source_name
      self._is_parsing_conditions = False
  
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 1 to create a new StoryReader object  with example: obj = StoryReader(domain, source_name)