def METHOD_NAME(self) -> str:
    SEPARATOR_LENGTH = 42
    def separator(text: str):
        half_sep_len = (SEPARATOR_LENGTH - 2 - len(text)) / 2
        return f"{floor(half_sep_len)*'-'} {text.upper()} {ceil(half_sep_len)*'-'}"
    formatted_messages = "\n".join(
        [f"{separator(m.role)}\n{m.content}" for m in self.messages]
    )
    return f"""