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).
rasa.core.restore
align_lists
Align two lists trying to keep same elements at the same index.
If lists contain different items at some indices, the algorithm will
try to find the best alignment and pad with None
values where necessary.
actions_since_last_utterance
Extract all events after the most recent utterance from the user.
replay_events
Take a tracker and replay the logged user utterances against an agent.
During replaying of the user utterances, the executed actions and events created by the agent are compared to the logged ones of the tracker that is getting replayed. If they differ, a warning is logged.
At the end, the tracker stored in the agent's tracker store for the same sender id will have quite the same state as the one that got replayed.
load_tracker_from_json
Read the json dump from the file and instantiate a tracker it.