def get_effective_agent_id(self):
if self.is_authenticated():<EOL><INDENT>return self._proxy.get_authentication().get_agent_id()<EOL><DEDENT>elif self._proxy is not None and self._proxy.has_effective_agent():<EOL><INDENT>return self._proxy.get_effective_agent_id()<EOL><DEDENT>else:<EOL><INDENT>return Id(identifier='<STR_LIT>',<EOL>namespace='<STR_LIT>',<EOL>authority='<STR_LIT>')<EOL><DEDENT>
Gets the Id of the effective agent in use by this session.
        If is_authenticated() is true, then the effective agent may be
        the same as the agent returned by get_authenticated_agent(). If
        is_authenticated() is false, then the effective agent may be a
        default agent used for authorization by an unknwon or anonymous
        user.
        return: (osid.id.Id) - the effective agent
        compliance: mandatory - This method must be implemented.