notice

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

Version: Master/Unreleased

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:

  • data - input JSON data as a dictionary.

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:

  • data - input JSON data as a dictionary.

Returns:

The transformed input data.

__str__

| __str__() -> Text

Return the string representation of the emulator.