def on_parameter_fetched(self, params, info):
        """
            Called when a new parameter is fetched.
        """
        if self.agent_mode == 'training':
            # The time it takes for parameter to go from learner to agent
            delay = time.time() - info['time']
            self.actions_per_param_update.add_value(
                self.actions_since_param_update)
            self.episodes_per_param_update.add_value(
                self.episodes_since_param_update)
            self.tensorplex.add_scalars(
                {
                    '.core/parameter_publish_delay_s': delay,
                    '.core/actions_per_param_update':
                        self.actions_per_param_update.cur_value(),
                    '.core/episodes_per_param_update':
                        self.episodes_per_param_update.cur_value()
                })
            self.actions_since_param_update = 0
            self.episodes_since_param_update = 0
        return params

            Called when a new parameter is fetched.
        
surreal/agent/base.py