dialogue_manager.dialogue_state_tracker¶
Dialogue state tracker updates the current dialogue state.
Module Contents¶
Classes¶
- class dialogue_manager.dialogue_state_tracker.DialogueStateTracker(config: Dict[str, Any], isBot: bool)¶
- initialize() None¶
Initializes the dialogue state tracker.
- update_state_user(user_dacts: List[moviebot.dialogue_manager.dialogue_act.DialogueAct]) None¶
Updates the current dialogue state and context based on user dialogue acts.
- Parameters
user_dacts – List of dialogue acts which is the output of NLU.
- update_state_agent(agent_dacts: List[moviebot.dialogue_manager.dialogue_act.DialogueAct]) None¶
Updates the current dialogue state and context based on agent dialogue acts.
- Parameters
agent_dacts – List of dialogue acts which is the output of dialogue policy.
- update_state_db(database_result: List[Dict[str, Any]] = None, backup_results: List[Dict[str, Any]] = None) None¶
Updates the state based on the results fetched from the database.
- Parameters
database_result – The database results based on user information needs. Defaults to None.
backup_results – Previous results stored in the database. Defaults to None.
- get_state() moviebot.dialogue_manager.dialogue_state.DialogueState¶
Returns the current dialogue state.
- Returns
The current dialogue state.
- get_context() moviebot.dialogue_manager.dialogue_context.DialogueContext¶
Returns the history for a specific user.
- Returns
The current user context.