{% load i18n djpa %} {% comment %} One line of the transcript. The context: kind (user, assistant, tool_call, tool_result or error), text and tool_name. {% endcomment %} {% if kind == "user" %}
{{ text|linebreaksbr }}
{% elif kind == "assistant" %}
{{ text|djpa_reply_html }}
{% elif kind == "tool_call" %}
{{ tool_name }}
{{ text }}
{% elif kind == "tool_result" %}
{{ tool_name }}
{{ text }}
{% elif kind == "error" %}
{{ text }}
{% endif %}