def _make_pre_act_value(self) -> str:
    """Returns a representation of the current situation to pre act."""
    current_time = self._clock_now()
    memory = self.get_entity().get_component(
        self._memory_component_name,
        type_=memory_component.MemoryComponent)

    if self._previous_time is None:
      self._previous_time = _get_earliest_timepoint(memory)

    interval_scorer = legacy_associative_memory.RetrieveTimeInterval(
        time_from=self._previous_time,
        time_until=current_time,
        add_time=True,
    )
    mems = [mem.text for mem in memory.retrieve(scoring_fn=interval_scorer)]
    result = '\n'.join(mems) + '\n'

    self._logging_channel({
        'Key': self.get_pre_act_key(),
        'Value': result,
    })

    self._previous_time = current_time

    return result
Returns a representation of the current situation to pre act.
concordia/contrib/components/agent/deprecated/observations_since_last_update.py