Explorar o código

Update dialogue_manager: add current hour to context

StrayWarrior hai 2 semanas
pai
achega
4e34bf337a
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      dialogue_manager.py

+ 1 - 0
dialogue_manager.py

@@ -405,6 +405,7 @@ class DialogueManager:
             "current_state": self.current_state.name,
             "previous_state": self.previous_state.name,
             "current_time_period": time_context.description,
+            "current_hour": datetime.now().hour,
             # "dialogue_history": self.dialogue_history[-10:],
             "last_interaction_interval": self._get_hours_since_last_interaction(2),
             "if_first_interaction": True if self.previous_state == DialogueState.INITIALIZED else False,