def __init__(
      self,
      *,
      model: language_model.LanguageModel,
      related_agents_names: Sequence[str],
      memory_component_name: str = (
          memory_component.DEFAULT_MEMORY_COMPONENT_NAME
      ),
      num_memories_to_retrieve: int = 25,
      pre_act_key: str = DEFAULT_PRE_ACT_KEY,
      logging_channel: logging.LoggingChannel = logging.NoOpLoggingChannel,
  ):
    """Initialize an identity component.

    Args:
      model: a language model
      related_agents_names: the names of the agents to query for relationships
      memory_component_name: The name of the memory component from which to
        retrieve related memories.
      num_memories_to_retrieve: how many related memories to retrieve per query
      pre_act_key: Prefix to add to the output of the component when called in
        `pre_act`.
      logging_channel: The channel to use for debug logging.
    """
    super().__init__(pre_act_key)
    self._model = model
    self._memory_component_name = memory_component_name

    self._related_agents_names = related_agents_names
    self._num_memories_to_retrieve = num_memories_to_retrieve

    self._logging_channel = logging_channel
Initialize an identity component.

    Args:
      model: a language model
      related_agents_names: the names of the agents to query for relationships
      memory_component_name: The name of the memory component from which to
        retrieve related memories.
      num_memories_to_retrieve: how many related memories to retrieve per query
      pre_act_key: Prefix to add to the output of the component when called in
        `pre_act`.
      logging_channel: The channel to use for debug logging.
    
concordia/components/agent/deprecated/relationships.py