def __init__(
      self,
      model: language_model.LanguageModel,
      memory_component_key: str = (
          memory_component.DEFAULT_MEMORY_COMPONENT_KEY
      ),
      components: Sequence[str] = (),
      num_memories_to_retrieve: int = 25,
      pre_act_label: str = 'Relevant memories',
  ):
    """Initialize a component to report relevant memories (similar to a prompt).

    Args:
      model: The language model to use.
      memory_component_key: The name of the memory component from which to
        retrieve related memories.
      components: Keys of components to condition the answer on.
      num_memories_to_retrieve: The number of memories to retrieve.
      pre_act_label: Prefix to add to the output of the component when called
        in `pre_act`.
    """
    super().__init__(pre_act_label)
    self._model = model
    self._memory_component_key = memory_component_key
    self._components = components
    self._num_memories_to_retrieve = num_memories_to_retrieve
Initialize a component to report relevant memories (similar to a prompt).

    Args:
      model: The language model to use.
      memory_component_key: The name of the memory component from which to
        retrieve related memories.
      components: Keys of components to condition the answer on.
      num_memories_to_retrieve: The number of memories to retrieve.
      pre_act_label: Prefix to add to the output of the component when called
        in `pre_act`.
    
concordia/components/agent/all_similar_memories.py