def update_state_sysact(self, sys_acts):
        """
        Updates the state, given the last system act. This is
        useful as we may want to update parts of the state given nlu output
        and then update again once the system produces a response.

        :param sys_acts:
        :return:
        """

        for sys_act in sys_acts:
            if sys_act.intent == 'offer':
                self.DState.system_made_offer = True

            # Reset the request if the system asks for more information,
            # assuming that any previously offered item
            # is now invalid.
            elif sys_act.intent == 'request':
                self.DState.system_made_offer = False

        Updates the state, given the last system act. This is
        useful as we may want to update parts of the state given nlu output
        and then update again once the system produces a response.

        :param sys_acts:
        :return:
        
applications/cambridge_restaurants/camrest_dst.py