def METHOD_NAME(self, character, who_talked, speech):
    """Add a person's speech to the memory. This is stored as name: chat for the LLM."""
    memory = self.chat_memory[character]
    memory.append(f"{who_talked.get_display_name(self)}: {speech}")
    # trim the memory if it's getting too long in order to save space
    memory = memory[-self.max_chat_memory_size :]
    self.chat_memory[character] = memory