notice

This is unreleased documentation for Rasa Open Source Documentation Master/Unreleased version.
For the latest released documentation, see the latest version (2.x).

Version: Master/Unreleased

rasa.graph_components.providers.domain_without_response_provider

DomainWithoutResponsesProvider Objects

class DomainWithoutResponsesProvider(GraphComponent)

Provides domain without information about responses.

create

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

Creates component (see parent class for full docstring).

provide

def provide(domain: Domain) -> Domain

Recreates the given domain but acts as if responses have not been specified.

Arguments:

  • domain - A domain.

Returns:

Domain that has been created from the same parameters as the given domain but with an empty set of responses.