def get_agent(self):
<EOL>if not bool(self._my_map['<STR_LIT>']):<EOL><INDENT>raise errors.IllegalState('<STR_LIT>')<EOL><DEDENT>mgr = self._get_provider_manager('<STR_LIT>')<EOL>if not mgr.supports_agent_lookup():<EOL><INDENT>raise errors.OperationFailed('<STR_LIT>')<EOL><DEDENT>lookup_session = mgr.get_agent_lookup_session(proxy=getattr(self, "<STR_LIT>", None))<EOL>lookup_session.use_federated_agency_view()<EOL>osid_object = lookup_session.get_agent(self.get_agent_id())<EOL>return osid_object<EOL>
Gets the ``Agent`` for this authorization.

        return: (osid.authentication.Agent) - the ``Agent``
        raise:  IllegalState - ``has_agent()`` is ``false``
        raise:  OperationFailed - unable to complete request
        *compliance: mandatory -- This method must be implemented.*