notice

This is unreleased documentation for Rasa Documentation Main/Unreleased version.
For the latest released documentation, see the latest version (3.x).

Version: Main/Unreleased

rasa.graph_components.validators.default_recipe_validator

DefaultV1RecipeValidator Objects

class DefaultV1RecipeValidator(GraphComponent)

Validates a "DefaultV1" configuration against the training data and domain.

create

@classmethod
def create(cls, config: Dict[Text, Any], model_storage: ModelStorage,
resource: Resource,
execution_context: ExecutionContext) -> DefaultV1RecipeValidator

Creates a new ConfigValidator (see parent class for full docstring).

__init__

def __init__(graph_schema: GraphSchema) -> None

Instantiates a new ConfigValidator.

Arguments:

  • graph_schema - a graph schema

validate

def validate(importer: TrainingDataImporter) -> TrainingDataImporter

Validates the current graph schema against the training data and domain.

Arguments:

  • importer - the training data importer which can also load the domain

Raises:

InvalidConfigException or InvalidDomain in case there is some mismatch