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.providers.rule_only_provider

RuleOnlyDataProvider Objects

@dataclasses.dataclass
class RuleOnlyDataProvider(GraphComponent)

Provides slots and loops that are only used in rules to other policies.

Policies can use this to exclude features which are only used by rules from the featurization.

create

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

Creates component (see parent class for docstring).

provide

def provide() -> Dict[Text, Any]

Provides data to other graph component.