()
| 3908 | } |
| 3909 | |
| 3910 | function getOutputTokenUsageAttachment(): Attachment[] { |
| 3911 | if (feature('TOKEN_BUDGET')) { |
| 3912 | const budget = getCurrentTurnTokenBudget() |
| 3913 | if (budget === null || budget <= 0) { |
| 3914 | return [] |
| 3915 | } |
| 3916 | return [ |
| 3917 | { |
| 3918 | type: 'output_token_usage', |
| 3919 | turn: getTurnOutputTokens(), |
| 3920 | session: getTotalOutputTokens(), |
| 3921 | budget, |
| 3922 | }, |
| 3923 | ] |
| 3924 | } |
| 3925 | return [] |
| 3926 | } |
| 3927 | |
| 3928 | function getMaxBudgetUsdAttachment(maxBudgetUsd?: number): Attachment[] { |
| 3929 | if (maxBudgetUsd === undefined) { |
no test coverage detected