{% for e in events %}
{% set bar = scale.bar(e) %}
{{ e.start_time_ns | offset_ms(scale.start_ns) }}
{{ e.kind }}
{% if e.depth %}└{% endif %}
{% if e.kind == "llm" and e.attributes["agentflight.llm.tokens_in"] is defined %}
{{ e.attributes["agentflight.llm.tokens_in"] | number }} → {{ e.attributes.get("agentflight.llm.tokens_out") | number }} tokens
{% endif %}
{% if e.attributes["agentflight.replay.source"] is defined %}{{ e.attributes["agentflight.replay.source"] }}{% endif %}
{% for c in spawned_at.get(e.span_id, []) %}↳ {% if c.parent_source == "inferred" %}run started from here{% else %}sub-agent run{% endif %}: {{ c.name or c.id }}{% endfor %}
{% if e.status == "error" %}