Skip to main content

Module cost

Module cost 

Source
Expand description

Combined conversation model and implementer cost reporting.

Aggregates costs from the machine-wide usage log across interactive REPL sessions and dispatched worker runs.

Structs§

BySessionReport
JSON payload for blyte cost --by-session --json.
SessionTotals
Aggregated spend and activity counts for a single session.
Totals
Aggregated spend and run count.

Functions§

by_session
Groups matching usage log entries by session id, ordered by first timestamp.
format_by_session
Formats the per-session breakdown followed by the existing total line.
format_totals
Formats the totals into the human-readable summary line: blyte $<o+i> (conversation model $<o>, implementers $<i> in <runs> runs)
run
Executes the blyte cost subcommand.
totals
Aggregates usage log entries matching all given filters.