Explorar o código

Update dialogue_manager: fix is_invalid

StrayWarrior hai 1 mes
pai
achega
6ee857c1a2
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      pqai_agent/dialogue_manager.py

+ 1 - 1
pqai_agent/dialogue_manager.py

@@ -144,7 +144,7 @@ class DialogueManager:
             return TimeContext.NIGHT
 
     def is_valid(self):
-        if not self.staff_profile.get('agent_name', None):
+        if not self.staff_profile.get('name', None) and not self.staff_profile.get('agent_name', None):
             return False
         return True