def get_agents(self):
<EOL>collection = JSONClientValidated('<STR_LIT>',<EOL>collection='<STR_LIT>',<EOL>runtime=self._runtime)<EOL>result = collection.find(self._view_filter()).sort('<STR_LIT>', DESCENDING)<EOL>return objects.AgentList(result, runtime=self._runtime, proxy=self._proxy)<EOL>
Gets all ``Agents``.

        In plenary mode, the returned list contains all known agents or
        an error results. Otherwise, the returned list may contain only
        those agents that are accessible through this session.

        return: (osid.authentication.AgentList) - a list of ``Agents``
        raise:  OperationFailed - unable to complete request
        raise:  PermissionDenied - authorization failure
        *compliance: mandatory -- This method must be implemented.*