{% extends "base.html" %} {% block title %}{{ run.name or run.id }} · AgentFlight{% endblock %} {% block main %}

Runs / {{ run.id }}

{{ run.name or "(unnamed run)" }} {{ run.status }}

{% set tab = "timeline" %} {% include "_run_tabs.html" %}
Started
{{ run.start_time_ns | utc }}
Duration
{{ run.duration_ms | duration }}
Events
{{ run.event_count | number }}
LLM calls
{{ run.llm_calls | number }}
Tool calls
{{ run.tool_calls | number }}
Tokens in / out
{{ run.tokens_in | number }} / {{ run.tokens_out | number }}
{% if run.tokens_cache_read is not none or run.tokens_cache_write is not none %} {% set cached = (run.tokens_cache_read or 0) + (run.tokens_cache_write or 0) %}
Input breakdown
new input {{ [run.tokens_in - cached, 0] | max | number }}{% if run.tokens_cache_read is not none %} · cache read {{ run.tokens_cache_read | number }}{% endif %}{% if run.tokens_cache_write is not none %} · cache write {{ run.tokens_cache_write | number }}{% endif %}{% if cached > run.tokens_in %} cache counts exceed input{% endif %}
{% endif %}
Cost
{{ run.cost_usd | cost }}
Failures
{{ run.errors | number }} ({{ run.error_events | number }} error events)
{% if run.dropped_spans %} {% endif %} {% if run.parent_run_id %}

{% if run.parent_source == "inferred" %}started from run{% else %}sub-agent run of{% endif %} {% if parent_known %}{% if parent_name %}{{ parent_name }} · {% endif %}{{ run.parent_run_id }}{% if run.parent_span_id %} · from span {{ run.parent_span_id }}{% endif %}{% else %}{{ run.parent_run_id }} parent not recorded{% endif %}{% if run.parent_source == "inferred" %} (inferred from an OpenTelemetry span link){% endif %}

{% endif %} {% if children %}
{{ run.child_run_count | number }} sub-agent run{% if run.child_run_count != 1 %}s{% endif %}{% if run.child_run_count > children | length %}, first {{ children | length }} shown · see all{% endif %}
{% endif %} {% if replay %}

{{ replay.mode or "replay" }} of {{ replay.source_run }} {% if replay.fork_step is not none %}· forked at step {{ replay.fork_step }}{% endif %} {% if replay.diverged_at is not none %}· went live at step {{ replay.diverged_at }}: {{ replay.divergence }}{% endif %} · Compare with source run

{% endif %} {% if run.metadata %}
Metadata
{{ run.metadata | pretty }}
{% endif %}
{% if focus %} {% from "_status.html" import box_class %} {% set fe = focus.event %}
{% if fe %} {% set fa = fe.attributes %}

{% if fa.get("agentflight.agent.name") is not none %}Agent {{ fa.get("agentflight.agent.name") }}{% else %}{{ fe.kind }} {{ fe.name }}{% endif %} {{ focus.box.status }} · {{ subtree_count | number }} event{% if subtree_count != 1 %}s{% endif %} in this subtree

{% if fa.get("agentflight.agent.task") is not none %}

{{ fa.get("agentflight.agent.task") }}

{% endif %} {% if fa.get("agentflight.agent.model") is not none %}

model {{ fa.get("agentflight.agent.model") }}

{% endif %} {% if fe.status == "error" and fe.status_message %}
{{ fe.status_message }}
{% endif %}
{% for key, label in [("agentflight.node.input", "Prompt"), ("agentflight.node.output", "Final output")] %}

{{ label }}

{% if key in fa %}
{{ fa[key] | pretty }}
{% else %}

not recorded

{% endif %} {% if key in fe.redacted %}

redacted by the server ({{ (fe.redacted[key].get("rules") or []) | join(", ") }})

{% endif %} {% if key in fe.truncated %}

Truncated when recorded: {{ fe.truncated[key].get("stored_length") | number }} of {{ fe.truncated[key].get("original_length") | number }} characters kept

{% endif %}
{% endfor %}
{% else %}

Agent {{ focus.span_id }} node not received yet · {{ subtree_count | number }} event{% if subtree_count != 1 %}s{% endif %} waiting for it

These events name a parent span that hasn't arrived (an integration may send an agent's node only when it finishes).

{% endif %}

← agents · all events

{% endif %}

Timeline

{% include "_timeline_rows.html" %}
StartKindEventDurationTimeline
{% endblock %}