(
config: Config,
args: { tokens_before: number; tokens_after: number },
)
| 104 | } |
| 105 | |
| 106 | export function recordChatCompressionMetrics( |
| 107 | config: Config, |
| 108 | args: { tokens_before: number; tokens_after: number }, |
| 109 | ) { |
| 110 | if (!chatCompressionCounter || !isMetricsInitialized) return; |
| 111 | chatCompressionCounter.add(1, { |
| 112 | ...getCommonAttributes(config), |
| 113 | ...args, |
| 114 | }); |
| 115 | } |
| 116 | |
| 117 | export function recordToolCallMetrics( |
| 118 | config: Config, |
no test coverage detected