Enter to send·Shift+Enter new line
format_memory_prompt( contents: Sequence[tuple[str, str]], template: str,
Approximate the memory fragment after middleware strips HTML comments.