Aludel.Stats.Costs (aludel v0.7.0)

Copy Markdown View Source

Cost reporting and breakdowns for the dashboard.

Summary

Functions

Aggregates recorded prompt-run and suite-run costs by prompt.

Aggregates recorded prompt-run and suite-run costs by provider.

Returns the average recorded cost across prompt runs and suite runs.

Functions

cost_by_prompt()

@spec cost_by_prompt() :: [map()]

Aggregates recorded prompt-run and suite-run costs by prompt.

Results are ordered from highest to lowest total cost.

cost_by_provider()

@spec cost_by_provider() :: [map()]

Aggregates recorded prompt-run and suite-run costs by provider.

Results are ordered from highest to lowest total cost.

cost_per_run()

@spec cost_per_run() :: float()

Returns the average recorded cost across prompt runs and suite runs.