Converts token usage counts into USD cost estimates using configurable per-model pricing tables.
Summary
Types
Functions
@spec calculate(token_counts(), String.t() | nil, String.t() | nil, pricing_table()) :: {:ok, float()} | {:error, :no_rates}
@spec calculate_run_cost(AgentSessionManager.Core.Run.t(), pricing_table()) :: {:ok, float()} | {:error, :no_rates}
@spec default_pricing_table() :: pricing_table()
@spec resolve_rates(String.t() | nil, String.t() | nil, pricing_table()) :: {:ok, rate_entry()} | {:error, :no_rates}