( content: string, fileExtension: string, )
| 232 | * let an oversized tool result slip into the conversation. |
| 233 | */ |
| 234 | export function roughTokenCountEstimationForFileType( |
| 235 | content: string, |
| 236 | fileExtension: string, |
| 237 | ): number { |
| 238 | return roughTokenCountEstimation( |
| 239 | content, |
| 240 | bytesPerTokenForFileType(fileExtension), |
| 241 | ) |
| 242 | } |
| 243 | |
| 244 | /** |
| 245 | * Estimates token count for a Message object by extracting and analyzing its text content. |
no test coverage detected