{% extends "base.html" %} {% from "macros.html" import cost, pct %} {% block title %}Cache · LLM Admin{% endblock %} {% block content %}

Cache

Window: {{ since }} → {{ until }}

Hit rate by agent

{% if hit_rate %} {% for r in hit_rate %} {% endfor %}
AgentRunsHit rateTotal cost
{{ r.agent_type }} {{ r.total_runs }} {{ pct(r.hit_rate) }} {{ cost(r.total_cost) }}
{% else %}

No runs in the window.

{% endif %}

Top cache entries by hit count

{% if top_entries %} {% for e in top_entries %} {% endfor %}
IDAgentModelHitsLast hitCreatedSource run
#{{ e.id }} {{ e.agent_type }} {{ e.model }} {{ e.hit_count }} {{ e.last_hit_at or '—' }} {{ e.created_at }} #{{ e.source_run_id }}
{% else %}

No cache entries yet.

{% endif %} {% endblock %}