{% extends "base.html" %} {% block breadcrumbs %} › Traces › {{ trace.short_id }}{% endblock %} {% block title %}Trace {{ trace.short_id }} — {{ site_title }}{% endblock %} {% block content %}

Trace {{ trace.short_id }}

{{ trace.status }} {{ trace.agent }} · {{ trace.steps }} step{{ '' if trace.steps == 1 else 's' }} · {{ trace.total_tokens | number }} tokens · {{ trace.duration_s | duration }}

Conversation

Input
{{ trace.input }}
Output
{{ trace.output or '—' }}
{% if trace.session_id %}
Session
{{ trace.session_id }}
{% endif %}
Started
{{ trace.started_at }}
{% if trace.meta %}
Meta
{{ trace.meta }}
{% endif %}
{% if trace.error %}
{{ trace.error }}
{% endif %}

Steps · {{ spans | length }}

{% if spans %} {% for item in spans %}
{{ item.span.kind }} {{ item.span.name | short(24) }}
{{ item.span.duration_s | duration }}
input / output
in:  {{ item.span.input }}
out: {{ item.span.output }}
{%- if item.span.usage %}
use: {{ item.span.usage }}
{%- endif %}
{%- if item.span.error %}
err: {{ item.span.error }}
{%- endif %}
{% endfor %} {% else %}

No spans recorded — tracing may be disabled.

{% endif %}
{% endblock %}