def __init__(
      self,
      clock_now: Callable[[], datetime.datetime],
      model: language_model.LanguageModel,
      memory: associative_memory.AssociativeMemory,
      name: str = 'Relevant events',
      num_memories_retrieved_for_update: int = 10,
      add_time: bool = True,
      use_recency: bool = True,
  ):
    """Initializes the component.

    Args:
      clock_now: Function that returns the current time.
      model: Language model.
      memory: Associative memory.
      name: Name of the component.
      num_memories_retrieved_for_update: Number of memories to retrieve when
        updating the state.
      add_time: Whether to add the time to the retrieved memories.
      use_recency: Whether to use recency in memory retrieval or not.
    """
    self._memory = memory
    self._model = model
    self._state = ''
    self._history = []
    self._clock_now = clock_now
    self._name = name
    self._num_memories_retrieved_for_update = num_memories_retrieved_for_update
    self._add_time = add_time
    self._use_recency = use_recency
Initializes the component.

    Args:
      clock_now: Function that returns the current time.
      model: Language model.
      memory: Associative memory.
      name: Name of the component.
      num_memories_retrieved_for_update: Number of memories to retrieve when
        updating the state.
      add_time: Whether to add the time to the retrieved memories.
      use_recency: Whether to use recency in memory retrieval or not.
    
concordia/components/game_master/deprecated/relevant_events.py