{% extends "base.html" %} {% from "_macros.html" import icon %} {% from "_macros_ui.html" import loading %} {% block title %}Агент — TG Agent{% endblock %} {% block head_scripts %} {% endblock %} {% block content %}

Агент

{% if agent_disabled_reason %} {% endif %}
Контекст

Треды

{# Thread list + runtime status + composer footer load lazily here; the fragment also OOB-swaps the offcanvas list, runtime panel and composer footer (#949). #}
{% if active_thread %} {# Runtime chips/badges depend on the lazily-probed backend; the threads fragment OOB-swaps this slot once it knows the runtime status (#949). #}
{{ active_thread.title }}
{% for msg in messages %} {% if msg.role == 'assistant' %}
{{ msg.content }}
{% else %}
{{ msg.content }}
{% endif %} {% else %}
{{ icon("ai") }}

Напишите первое сообщение

{% endfor %}
Сообщение отправится в текущий тред. {# composer-subtle hint depends on the lazy backend; OOB-filled (#949). #}
{# Model select vs deepagents hint depends on the lazy backend; the threads fragment OOB-swaps this slot (#949). #}
{% endif %}

Контекст

{% endblock %}