Version: 3.x

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

def convert_user_message(messages: List[UserMessage]) -> List[Message]

Converts user message into Message object.

Arguments:

  • messages - The user messages which should be converted to be processed by the NLU components.

Returns:

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