notice
This is documentation for Rasa Documentation v2.x, which is no longer actively maintained.
For up-to-date documentation, see the latest version (3.x).
rasa.core.training.converters.responses_prefix_converter
normalize_utter_action
Ensure that response names start with utter_.
Arguments:
action_name- The name of the response.
Returns:
The name of the response, starting with utter_.
StoryResponsePrefixConverter Objects
Converter responsible for ensuring that retrieval intent actions in stories
start with utter_ instead of respond_.
filter
Only accept YAML story files.
Arguments:
source_path- Path to a training data file.
Returns:
True if the given file is a YAML stories file, False otherwise.
convert_and_write
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_.
Arguments:
source_path- the source YAML stories file.output_path- Path to the output directory.
DomainResponsePrefixConverter Objects
Converter responsible for ensuring that retrieval intent actions in domain
start with utter_ instead of respond_.
filter
Only accept domain files.
Arguments:
source_path- Path to a domain file.
Returns:
True if the given file can is a valid domain file, False otherwise.
convert_and_write
Migrate retrieval intent responses to the new 2.0 format in domains.
Before 2.0, retrieval intent responses needed to start
with respond_. Now, they need to start with utter_.
Arguments:
source_path- The source domain file.output_path- Path to the output directory.
