rasa.nlu.emulators.emulator

Emulator Objects

class Emulator()

Emulator specifies how requests and responses are getting transformed.

name

@classmethod
name(cls) -> Text

Name that identifies the emulator.

normalise_request_json

normalise_request_json(data: Dict[Text, Any]) -> Dict[Text, Any]

Transform request JSON to target format.

Arguments:

Returns:

The transformed input data.

normalise_response_json

normalise_response_json(data: Dict[Text, Any]) -> Dict[Text, Any]

Transform response JSON to target format.

Arguments:

Returns:

The transformed input data.

str

__str__() -> Text

Return the string representation of the emulator.