{% extends "base.html" %} {% block title %}{{ inter.name }}{% endblock %} {% block page_title %} {{ inter.name }}{% endblock %} {% block content %} {% include "interactions/_nav.html" %} {% set st = inter.status %} {% set badge = {'running':'chip-active','paused':'chip-group','completed':'chip-telegram','stopped':'chip-inactive','error':'chip-inactive','draft':'chip-private'}.get(st,'chip-private') %}
وضعیت
{{ st }}
مقصد
{{ inter.destination_title or inter.destination_chat_id or '—' }}
موضوع
{{ inter.topic or '—' }}
شرکت‌کننده‌ها
{{ participants|length }}
{% if inter.status_detail %}
{{ inter.status_detail }}
{% endif %} {# Full interaction settings — editable; a running conversation reads these once at start, so changes here take effect from the next start, not retroactively (see InteractionService.update_settings). #}
تنظیمات تعامل
تغییرات از اجرای بعدی اعمال می‌شود
{% set rate = config.get('rate', {}) %} {% set stopping = config.get('stopping', {}) %} {% set summary = config.get('summary', {}) %} {% set ov = config.get('ai_overrides', {}) %} {% set bg = config.get('brand_guard', {}) %}

محافظت از نام برند
{% if inter.initial_message %}
پیام آغازین
{{ inter.initial_message }}
{% endif %}
{# Manual mother intervention — always available, even while running #}
ارسال پیام دستی با اکانت مادر
مداخله مستقیم
{% if inter.mother_account_id %}
این پیام بلافاصله (حتی هنگام اجرای گفتگو) توسط اکانت مادر ارسال و در متن گفتگو ثبت می‌شود تا اکانت‌های هوش مصنوعی آن را ببینند و مسیر بحث اصلاح شود.
{% else %}
برای این تعامل اکانت مادر تعیین نشده است؛ ارسال دستی در دسترس نیست.
{% endif %}
{# Live dashboard #}
داشبورد زنده
تعداد پیام{{ messages|selectattr('error','none')|list|length }}
خطاها0
در حال تایپ
آخرین پیام

اکانت‌ها
{# Report + participants #}
{% if report %}
گزارش
{{ report.total_messages }}
پیام موفق
{{ report.failed_messages }}
ناموفق
{{ '%.1f'|format(report.duration_seconds/60) }}
دقیقه
{{ '%.2f'|format(report.avg_response_time) }}s
میانگین پاسخ
{{ report.token_usage.tokens_in + report.token_usage.tokens_out }}
توکن کل
{{ report.retry_count }}
Retry
{% if report.cost_estimate %}
هزینه تقریبی
{% for prov, cost in report.cost_estimate.items() %}
{{ prov }}${{ '%.4f'|format(cost) }}
{% endfor %} {% endif %}
{% endif %}
شرکت‌کننده‌ها
{% for p in participants %} {% endfor %}
#اکانتAIPersonaRoleهدف
{{ p.order_index + 1 }} {{ account_names.get(p.account_id, p.account_id) }} {{ provider_names.get(p.provider_id, '—') }} {{ persona_names.get(p.persona_id, '—') }} {{ role_names.get(p.role_id, '—') }} {{ p.objective or '—' }}
{# Transcript #}
متن گفتگو ({{ messages|length }})
{% for m in messages %}
{{ m.sender_name }} {{ m.created_at|jalali('%H:%M:%S') if m.created_at else '' }}{% if m.response_time %} · {{ '%.1f'|format(m.response_time) }}s{% endif %}
{% if m.error %}
{{ m.error }}
{% else %}
{{ m.content }}
{% endif %}
{% else %}

هنوز پیامی رد و بدل نشده است

{% endfor %}
{% endblock %} {% block scripts %} {% endblock %}