Documentation
¶
Overview ¶
Package usage serves read-only rollups over the llm_usage spend ledger for the admin Usage view: a window summary plus per-agent and per-model breakdowns. The ledger is durable (rows survive agent/user deletion), so a deleted agent still appears under its snapshot identity.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Report ¶
type Report struct {
WindowDays int32
Summary dbq.UsageSummaryRow
ByAgent []dbq.UsageByAgentRow
ByModel []dbq.UsageByModelRow
ByUser []dbq.UsageByUserRow
}
Report is the full Usage view payload for one window.
Click to show internal directories.
Click to hide internal directories.