xueyiming 1 week ago
parent
commit
78dab9d833
1 changed files with 5 additions and 5 deletions
  1. 5 5
      pqai_agent/dialogue_manager.py

+ 5 - 5
pqai_agent/dialogue_manager.py

@@ -155,10 +155,10 @@ class DialogueManager:
             return TimeContext.NIGHT
 
     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
 
     def refresh_profile(self):
@@ -838,7 +838,7 @@ class DialogueManager:
         if user_message and not messages:
             logger.error(f"staff[{self.staff_id}], user[{self.user_id}]: inconsistency in messages")
         config['messages'] = messages
-
+        print(messages)
         return config
 
     @staticmethod