rasa.engine.recipes.recipe

You are viewing documentation for our open source project which is maintained by the community. If you want to get started building assistants with Rasa please check out our latest documentation here.

InvalidRecipeException Objects

class InvalidRecipeException(RasaException)

Exception in case the specified recipe is invalid.

Recipe Objects

class Recipe(abc.ABC)

Base class for Recipes which convert configs to graph schemas.

recipe_for_name

@staticmethod

def recipe_for_name(name: Optional[Text]) -> Recipe

Returns Recipe based on an optional recipe identifier.

Arguments:

Returns:

A recipe which can be used to convert a given config to train and predict graph schemas.

auto_configure

@staticmethod

def auto_configure( config_file_path: Optional[Text], config: Dict, training_type: Optional[TrainingType]= TrainingType.BOTH ) -> Tuple[Dict[Text, Any], Set[str], Set[str]]

Adds missing options with defaults and dumps the configuration. Override in child classes if this functionality is needed, each recipe will have different auto configuration values.

graph_config_for_recipe

@abc.abstractmethod

def graph_config_for_recipe( config: Dict, cli_parameters: Dict[Text, Any], training_type: TrainingType = TrainingType.BOTH, is_finetuning: bool = False ) -> GraphModelConfiguration

Converts a config to a graph compatible model configuration.

Arguments:

Returns:

The model configuration which enables to run the model as a graph for training and prediction.