A class used to verify usage of intents and utterances.
Initializes the Validator object.
domain- The domain.
intents- Training data.
story_graph- The story graph.
config- The configuration.
Create an instance from the domain, nlu and story files.
Compares list of intents in domain with intents in NLU training data.
Checks if there is no duplicated example in different intents.
Checks intents used in stories.
Verifies if the intents used in the stories are valid, and whether all valid intents are used in the stories.
Verifies usage of utterances in stories.
Checks whether utterances used in the stories are valid, and whether all valid utterances are used in stories.
Verifies that forms referenced in active_loop directives are present.
Verifies that actions used in stories and rules are present in the domain.
Verifies that the bot behaviour in stories is deterministic.
Trueeven if conflicts were found.
max_history- Maximal number of events to take into account for conflict identification.
False is a conflict was found and
Runs all the validations on intents and utterances.
Verifies that form slots match the slot mappings in domain.
Verifies that slot mappings match forms.
Checks whether the domain returned by the importer is empty.
An empty domain or one that uses deprecated Mapping Policy is invalid.
Raises a warning if mandatory keys are not present in the config.
Additionally, raises a UserWarning if the assistant_id key is filled with the default placeholder value.