{% extends "admin/base.html" %} {% block title %}Agent Usage - Admin - {{ site_name() }}{% endblock %} {% block admin_content %}

Agent Usage

Durable agent LLM usage

Refresh
Runs
{{ dashboard.run_count }}
{{ dashboard.turn_count }} turns
Requests
{{ dashboard.overall.requests_display }}
{{ dashboard.overall.tool_calls_display }} tool calls
Input
{{ dashboard.overall.input_tokens_display }}
tokens
Output
{{ dashboard.overall.output_tokens_display }}
{{ dashboard.overall.total_tokens_display }} total tokens

Per Run

{% for row in dashboard.runs %} {% endfor %}
Run Agent Actor Model Turns Requests Input Cache Read Cache Write Output Total Status Recorded
{{ row.short_session_id }} {{ row.agent_name }} {{ row.actor }} {{ row.models }} {{ row.turns }} {{ row.requests_display }} {{ row.input_tokens_display }} {{ row.cache_read_tokens_display }} {{ row.cache_write_tokens_display }} {{ row.output_tokens_display }} {{ row.total_tokens_display }} {{ row.status }} {{ row.last_recorded_at }}
{% if not dashboard.runs %}

No agent usage has been recorded yet.

{% endif %}
{% macro usage_group_table(title, rows, label) %}

{{ title }}

{% for row in rows %} {% endfor %}
{{ label }} Runs Turns Requests Input Cache Read Cache Write Output Total
{{ row.label }} {{ row.runs }} {{ row.turns }} {{ row.requests_display }} {{ row.input_tokens_display }} {{ row.cache_read_tokens_display }} {{ row.cache_write_tokens_display }} {{ row.output_tokens_display }} {{ row.total_tokens_display }}
{% if not rows %}

No usage records match this grouping.

{% endif %}
{% endmacro %}
{{ usage_group_table("Per Agent", dashboard.agents, "Agent") }} {{ usage_group_table("Per Actor", dashboard.actors, "Actor") }} {{ usage_group_table("Per Model", dashboard.models, "Model") }}
{% endblock %}