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

Version: 2.2.x

StoryResponsePrefixConverter Objects

class StoryResponsePrefixConverter(TrainingDataConverter)

Converter responsible for ensuring that retrieval intent actions in stories start with utter_ instead of respond_.


| @classmethod
| filter(cls, source_path: Path) -> bool

Only consider YAML story files.


  • source_path - Path to the training data file.


True if the given file can is a YAML stories file, False otherwise


| @classmethod
| async convert_and_write(cls, source_path: Path, output_path: Path) -> None

Migrate retrieval intent responses to the new 2.0 format in stories.

Before 2.0, retrieval intent responses needed to start with respond_. Now, they need to start with utter_.


  • source_path - the source YAML stories file
  • output_path - Path to the output directory.