Tracker
Tracker
Trackers maintain the state of a dialogue between the assistant and the user in the form of conversation sessions. To learn more about how to configure the session behavior, check out the docs on Session configuration.
class rasa.core.trackers.DialogueStateTracker(sender_id, slots, max_event_history=None, sender_source=None)
Maintains the state of a conversation.
Methods
applied_events()
Returns all actions that should be applied - w/o reverted events.as_dialogue()
Return aDialogueobject containing all of the turns. This can be serialized and later used to recover the state of this tracker exactly.change_form_to(form_name)
Activate or deactivate a formclear_followup_action()
Clears follow up action when it was executed.copy()
Creates a duplicate of this trackercurrent_slot_values()
Return the currently set values of the slotscurrent_state(event_verbosity=<EventVerbosity.NONE: 1>)
Return the current tracker state as an object.events_after_latest_restart()
Return a list of events after the most recent restart.export_stories(e2e=False, include_source=False)
Dump the tracker as a story in the Rasa Core story format.export_stories_to_file(export_path='debug.md')
Dump the tracker as a story to a file.from_dict(sender_id, events_as_dict, slots=None, max_event_history=None)
Create a tracker from dump.
...
(Additional methods follow in the same format)
Note on Images
👋 I can help you get started with Rasa and answer your technical questions.