dialogue_manager.dialogue_policy

A rule-based policy developed as an initial step to generate action by the agent based on the previous conversation and current dialogue.

Module Contents

Classes

DialoguePolicy

class dialogue_manager.dialogue_policy.DialoguePolicy(isBot: bool, new_user: bool)
next_action(dialogue_state: moviebot.dialogue_manager.dialogue_state.DialogueState, dialogue_context: moviebot.dialogue_manager.dialogue_context.DialogueContext = None, restart: bool = False) List[moviebot.dialogue_manager.dialogue_act.DialogueAct]

Decides the next action to be taken by the agent based on the current state and context.

Parameters
  • dialogue_state – Current dialogue state.

  • dialogue_context – Context of the dialogue. Defaults to None.

  • restart – Whether or not to restart the dialogue. Defaults to False.

Returns

A list of dialogue acts.