xueyiming 3 月之前
父節點
當前提交
78dab9d833
共有 1 個文件被更改,包括 5 次插入5 次删除
  1. 5 5
      pqai_agent/dialogue_manager.py

+ 5 - 5
pqai_agent/dialogue_manager.py

@@ -155,10 +155,10 @@ class DialogueManager:
             return TimeContext.NIGHT
             return TimeContext.NIGHT
 
 
     def is_valid(self):
     def is_valid(self):
-        if not self.staff_profile.get('name', None) \
-                and not self.staff_profile.get('agent_name', None) \
-                and not self.staff_profile.get('基础信息', {}).get('昵称', None):
-            return False
+        # if not self.staff_profile.get('name', None) \
+        #         and not self.staff_profile.get('agent_name', None) \
+        #         and not self.staff_profile.get('基础信息', {}).get('昵称', None):
+        #     return False
         return True
         return True
 
 
     def refresh_profile(self):
     def refresh_profile(self):
@@ -838,7 +838,7 @@ class DialogueManager:
         if user_message and not messages:
         if user_message and not messages:
             logger.error(f"staff[{self.staff_id}], user[{self.user_id}]: inconsistency in messages")
             logger.error(f"staff[{self.staff_id}], user[{self.user_id}]: inconsistency in messages")
         config['messages'] = messages
         config['messages'] = messages
-
+        print(messages)
         return config
         return config
 
 
     @staticmethod
     @staticmethod