def terminated(self):
        """
        Check if this agent is at a terminal state.

        :return: True or False
        """

        return self.ConversationalModules[
                   self.STATEFUL_MODULE
               ].at_terminal_state() or \
            self.dialogue_turn > self.MAX_TURNS

        Check if this agent is at a terminal state.

        :return: True or False
        
plato/agent/conversational_agent/conversational_generic_agent.py