소스 검색

Update dialogue_manager: add current hour to context

StrayWarrior 2 주 전
부모
커밋
4e34bf337a
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  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,