|
@@ -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
|