rasa/core/events/__init__.py
def deserialise_events(serialized_events: List[Dict[Text, Any]]
                       ) -> List['Event']:
    """Convert a list of dictionaries to a list of corresponding events.

    Example format:
        [{"event": "slot", "value": 5, "name": "my_slot"}]
    """

    deserialised = []

    for e in serialized_events:
        if "event" in e:
            event = Event.from_parameters(e)
            if event:
                deserialised.append(event)
            else:
                logger.warning("Ignoring event ({}) while deserialising "
                               "events. Couldn't parse it.")

    return deserialised
Convert a list of dictionaries to a list of corresponding events.

    Example format:
        [{"event": "slot", "value": 5, "name": "my_slot"}]
    
Convert a list of dictionaries to a list of corresponding events.
Convert a list of dictionaries to a list of corresponding events .
def deserialise_events(serialized_events: List[Dict[Text, Any]]
                       ) -> List['Event']:
    deserialised = []
    for e in serialized_events:
        if "event" in e:
            event = Event.from_parameters(e)
            if event:
                deserialised.append(event)
            else:
                logger.warning("Ignoring event ({}) while deserialising "
                               "events. Couldn't parse it.")
    return deserialised
def deserialise_events ( serialized_events : List [ Dict [ Text , Any ] ] ) -> List [ 'Event' ] : deserialised = [ ] for e in serialized_events : if "event" in e : event = Event . from_parameters ( e ) if event : deserialised . append ( event ) else : logger . warning ( "Ignoring event ({}) while deserialising " "events. Couldn't parse it." ) return deserialised
Convert a list of dictionaries to a list of corresponding events.
Convert a list of dictionaries to a list of corresponding events .
"""Convert a list of dictionaries to a list of corresponding events.

    Example format:
        [{"event": "slot", "value": 5, "name": "my_slot"}]
    """
serialized_events
List[Dict[Text, Any]]