{% for msg in chat['messages'] %} {% if msg['role']=='user' %} {% include('user_message.html') %} {% elif msg['role']=='assistant' and not msg['is_tool_call'] %} {% include('ai_message.html') %} {% elif msg['role']=='tool' %} {% include('function_call.html') %} {% endif %} {% endfor %}
{% include('loader.html') %}