Version: 3.x

rasa.shared.core.training_data.story_reader.story_step_builder

StoryStepBuilder Objects

class StoryStepBuilder()

add_checkpoint

def add_checkpoint(name: Text, conditions: Optional[Dict[Text, Any]]) -> None

Add a checkpoint to story steps.

add_user_messages

def add_user_messages(messages: List[UserUttered]) -> None

Adds next story steps with the user's utterances.

Arguments:

  • messages - User utterances.

add_events

def add_events(events: List[Event]) -> None

Adds next story steps with the specified list of events.

Arguments:

  • events - Events that need to be added.