code: def get_agents(self):
          
          agents_dict = self.get_term_agents()
          agents = [a for a in agents_dict.values() if a is not None]
          return agents
docs: Return list of INDRA Agents corresponding to TERMs in the EKB.
  
          This is meant to be used when entities e.g. "phosphorylated ERK",
          rather than events need to be extracted from processed natural
          language. These entities with their respective states are represented
          as INDRA Agents.
  
          Returns
          -------
          agents : list[indra.statements.Agent]
              List of INDRA Agents extracted from EKB.