def __init__(
      self,
      memory_bank: basic_associative_memory.AssociativeMemoryBank,
  ):
    """Initializes the associative memory.

    Args:
      memory_bank: The memory bank to use.
    """
    self._memory_bank = memory_bank
    self._lock = threading.Lock()
    self._buffer = []
Initializes the associative memory.

    Args:
      memory_bank: The memory bank to use.
    
concordia/components/agent/memory.py