notice

This is documentation for Rasa Open Source Documentation v2.0.x, which is no longer actively maintained.
For up-to-date documentation, see the latest version (2.1.x).

Version: 2.0.x

rasa.shared.core.training_data.story_reader.story_step_builder

StoryStepBuilder Objects

class StoryStepBuilder()

add_user_messages

| add_user_messages(messages: List[UserUttered], is_used_for_training: bool = True) -> None

Adds next story steps with the user's utterances.

Arguments:

  • messages - User utterances.
  • is_used_for_training - Identifies if the user utterance is a part of OR statement. This parameter is used only to simplify the conversation from MD story files. Don't use it other ways, because it ends up in a invalid story that cannot be user for real training. Default value is False, which preserves the expected behavior of the reader.