(credits: CreditsSummary)
| 164 | } |
| 165 | |
| 166 | function formatCredits(credits: CreditsSummary): string { |
| 167 | if (credits.unlimited) return "unlimited plan" |
| 168 | if (!credits.hasCredits) return "not included with this plan" |
| 169 | if (credits.balance) return `balance ${credits.balance}` |
| 170 | return "available" |
| 171 | } |
| 172 | |
| 173 | function formatTokenUsage(usage: UsageRecordSummary["tokenUsage"]): string | undefined { |
| 174 | if (!usage) return undefined |
no outgoing calls
no test coverage detected