Dialogue State Tracker¶
The tracker stores and maintains the state of the dialogue with a single user. It is stored in a tracker store, retrieved when incoming messages for the conversation are received and updated after actions have been executed
Here we go:
DialogueStateTracker(sender_id, slots, topics=None, default_topic=None, max_event_history=None)¶
Maintains the state of a conversation.
Dialogueobject containing all of the turns.
This can be serialised and later used to recover the state of this tracker exactly.
Clears follow up action when it was executed
Return the currently set values of the slots
Returns the current tracker state as an object.
from_dict(sender_id, dump_as_dict, domain)¶
Returns a generator of the previous states of this tracker.
The resulting array is representing the state before each action.
Get entity values found for the passed entity name in latest msg.
If you are only interested in the first entity of a given type use next(tracker.get_latest_entity_values(“my_entity_name”), None). If no entity is found None is the default result.
Retrieves the value of a slot.
States whether the tracker is currently paused.
Retrieves the topic that was set before the current one.
Use a serialised Dialogue to update the trackers state.
This uses the state as is persisted in a
TrackerStore. If the tracker is blank before calling this method, the final state will be identical to the tracker from which the dialogue was created.
Update the tracker based on a list of events.
Retrieves current topic, or default if no topic has been set yet.
Creates a new tracker with a state at a specific timestamp.
A new tracker will be created and all events previous to the passed time stamp will be replayed. Events that occur exactly at the target time will be included.
Triggers another action following the execution of the current.
Modify the state of the tracker according to an