Versions in this module Expand all Collapse all v0 v0.1.0 Jul 14, 2026 Changes in this version + func RenderText(w io.Writer, report Report) + type BlockUsage struct + Count int + Tokens int + Type string + type Report struct + Action string + Blocks []BlockUsage + Kind string + MessageCount int + Model string + Roles []RoleUsage + SessionID string + Status string + Summary Summary + ToolUse ToolUseSummary + func BuildReport(sessionID string, model string, messages []anthropic.Message) Report + func BuildReportWithUsage(sessionID string, model string, messages []anthropic.Message, ...) Report + type RoleUsage struct + Messages int + Role string + Tokens int + type Summary struct + CacheCreationInputTokens int + CacheReadInputTokens int + EstimatedUSD float64 + InputTokens int + OutputTokens int + Source string + TotalTokens int + func ActualSummary(usages []anthropic.Usage, model string) (Summary, bool) + func Estimate(messages []anthropic.Message, model string) Summary + type ToolUseSummary struct + Errors int + ToolResults int + ToolUses int