{# 会話の往復 (turns = [{"role": "user" か "assistant", "text": 字}])。利用者は右、AI は左。吹き出しは core の _chat_bubble.html (丸の印つき)。 #} {% for turn in turns %}{% if turn.role == "user" %}{% include "core/_chat_bubble.html" with who="me" text=turn.text only %}{% else %}{% include "core/_chat_bubble.html" with who="ai" text=turn.text only %}{% endif %}{% endfor %}