dialogue_manager.dialogue_policy.rb_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

RuleBasedDialoguePolicy

class dialogue_manager.dialogue_policy.rb_dialogue_policy.RuleBasedDialoguePolicy(isBot: bool, new_user: bool)
next_action(dialogue_state: moviebot.dialogue_manager.dialogue_state.DialogueState, 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.

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

Returns:

A list of dialogue acts.