diff --git a/rasa/shared/core/events.py b/rasa/shared/core/events.py index f07a01baeb5d..5b0123bde6ce 100644 --- a/rasa/shared/core/events.py +++ b/rasa/shared/core/events.py @@ -410,7 +410,7 @@ def _from_parse_data( def __hash__(self) -> int: """Returns unique hash of object.""" - return hash((self.text, self.intent_name, jsonpickle.encode(self.entities))) + return hash(json.dumps(self.as_sub_state())) @property def intent_name(self) -> Optional[Text]: