text: 3. have a prompt for prompting the next speaker to speak        self.prompt_next_speaker_prompt_template = PromptTemplate(            input_variables=["message_history", "next_speaker"],            template=f"""{{message_history}}The next speaker is {{next_speaker}}. Prompt the next speaker to speak with an insightful question.{self.prefix}        """,        )    def _generate_response(self):        # if self.stop = True, then we will inject the prompt with a termination clause        sample = random.uniform(0, 1)        self.stop = sample < self.stopping_probability        print(f"\tStop? {self.stop}\n")        response_prompt = self.response_prompt_template.format(            message_history="\n".join(self.message_history),            termination_clause=self.termination_clause if self.stop else "",        )        self.response = self.model(            [                self.system_message,                HumanMessage(content=response_prompt),            ]        ).content        return self.response    @tenacity.retry(        stop=tenacity.stop_after_attempt(2),        wait=tenacity.wait_none(),