{% load i18n %} {% comment %} The end of a run. The stream view puts it in the place of the reply. The context: tool_calls, reply_text, approvals, error_code and csrf_token. Each tool call shows as a closed tool line, the same as after a reload. {% endcomment %} {% for call in tool_calls %} {% include "dj_pydantic_agents/transcript_line.html" with kind="tool_call" text=call.args_json tool_name=call.tool_name only %} {% endfor %} {% if reply_text %} {% include "dj_pydantic_agents/transcript_line.html" with kind="assistant" text=reply_text only %} {% endif %} {% for approval in approvals %} {% include "dj_pydantic_agents/approval_card.html" with approval=approval csrf_token=csrf_token only %} {% endfor %} {% if error_code %} {% blocktranslate asvar error_text %}The reply failed ({{ error_code }}). Send a new message to try again.{% endblocktranslate %} {% include "dj_pydantic_agents/transcript_line.html" with kind="error" text=error_text only %} {% endif %}