notice

This is documentation for Rasa Documentation v2.x, which is no longer actively maintained.
For up-to-date documentation, see the latest version (3.x).

Version: 2.x

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.