langchain/experimental/generative_agents/generative_agent.py/GenerativeAgent/_clean_response
class GenerativeAgent:    def _clean_response(self, text: str) -> str:
        return re.sub(f"^{self.name} ", "", text.strip()).strip()