{% extends "base.html" %} {% block title %}agents · aether 控制台{% endblock %} {% block content %}
两类 agent:改写 prompt agent(公众号 / 小红书,prompt 可编辑) + 抓源 agent(每个 source 一个,v0.1 只读)。
{# ----- Stats overview ----- #}点击进入编辑 prompt。整体 workflow 不能修改(topology 锁住),只能调整 prompt 内容。
每行一个 source。点运行触发一次 fetch,把文章抓到 articles 表。
| 源 | domain | tier | 状态 | 文章数 | 上次抓取 | |
|---|---|---|---|---|---|---|
{{ a.label }}
{{ a.target_id }} |
{{ a.domain }} | {{ a.tier }} |
{% if a.enabled %}
enabled
{% else %}
disabled
{% endif %}
{% if a.last_fetch_status and a.last_fetch_status != 'ok' %}
⚠ {{ a.last_fetch_status[:30] }}{% if a.last_fetch_status|length > 30 %}…{% endif %}
{% endif %}
|
{{ a.article_count }} | {{ a.last_fetched_at or '—' }} | 看文章 |
还没加源。添加源 →
| 时间 | agent | 状态 | duration | error | |
|---|---|---|---|---|---|
| {{ r.started_at.strftime('%m-%d %H:%M:%S') if r.started_at else '—' }} | {{ r.agent_id }} |
{{ r.status }} | {% if r.started_at and r.finished_at %} {{ ((r.finished_at - r.started_at).total_seconds() | round(1)) }}s {% elif r.status in ('running', 'pending') %} ⟳ running {% else %}—{% endif %} | {{ (r.error or '')[:60] }}{% if r.error and r.error|length > 60 %}…{% endif %} | view → |
{% if status_filter %} 没有 status={{ status_filter }} 的 task run。 {% else %} 还没有 task run。点上面任一"运行"按钮试试。 {% endif %}
{% endif %}