notice

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

Version: Master/Unreleased

rasa.graph_components.converters.nlu_message_converter

NLUMessageConverter Objects

class NLUMessageConverter(GraphComponent)

Converts the user message into a NLU Message object.

create

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

Creates component (see parent class for full docstring).

convert_user_message

@staticmethod
def convert_user_message(message: Optional[UserMessage]) -> List[Message]

Converts user message into Message object.

Returns:

List containing only one instance of Message. Else empty list if user message is None.