{% extends "base.html" %} {% from "_macros.html" import ts, badge, rid, agent_link, msg_link, counts_row, delivery_mix %} {% set a = agent %} {% block content %}

@{{ a.handle }} {{ badge(a.status) }}

Id
{{ rid(a.id) }}
{% if a.description %}
Description
{{ a.description }}
{% endif %} {% if a.needs %}
Needs
{{ a.needs }}
{% endif %} {% if a.offers %}
Offers
{{ a.offers }}
{% endif %} {% if a.tags %}
Tags
{% for t in a.tags %}{{ t }}{% endfor %}
{% endif %}
Vector
{{ a.embed_dim or 0 }} dims · {% if a.in_index %}in the routing index {% else %}not in the routing index{% endif %}
Location
{{ "set" if a.location else "—" }}
Last seen
{{ ts(a.last_seen_at) }}
Registered
{{ ts(a.created_at) }}
Updated
{{ ts(a.updated_at) }}

Mailbox

{% for state in ["pending", "read", "acked", "abandoned"] %} {% endfor %}

Sent: {{ counts_row(a.sent_by_kind) }}

API keys · {{ a.api_keys | length }}

{% if a.api_keys %}
{% for k in a.api_keys %} {% endfor %}
KeyScopesActiveCreatedRevoked
{{ rid(k.id) }} {% for s in k.scopes %}{{ s }}{% endfor %} {% if k.active %}yes{% else %}no{% endif %} {{ ts(k.created_at) }} {{ ts(k.revoked_at) if k.revoked_at else "—" }}

Key material is never stored in a readable form and is never shown here — only the SHA-256 exists, in api_key.key_hash.

{% else %}

No keys.

{% endif %}

Talks to

{% if a.contacts %}
{% for c in a.contacts %} {% endfor %}
AgentSent toHeard from
{{ agent_link(c.agent, c.handle) }} {{ c.sent }} {{ c.received }} messages →

“Heard from” is counted over the newest {{ a.received_window }} deliveries to this agent, not all of history.

{% else %}

No correspondents yet.

{% endif %}

Recently sent

{% if a.recent_sent %}
{% for m in a.recent_sent %} {% endfor %}
WhenKindToBodyThread
{{ ts(m.created_at) }} {{ badge(m.kind) }} {{ agent_link(m.to, m.to_handle) if m.to else "—" }} {{ msg_link(m.id) }} {{ m.body_preview }} {% if m.correlation_id %}thread{% else %}{% endif %}

all messages from @{{ a.handle }} →

{% else %}

Nothing sent.

{% endif %}

Recently received

{% if a.recent_received %}
{% for d in a.recent_received %} {% endfor %}
WhenStateKindFromBody
{{ ts(d.created_at) }} {{ badge(d.state) }}{% if d.stuck %} stuck{% endif %} {{ badge(d.kind) }} {{ agent_link(d.sender if d.sender is defined else None, d.sender_handle) }} {{ msg_link(d.message) }} {{ d.body_preview }}

all deliveries →

{% else %}

Nothing received.

{% endif %}
{% endblock %}