MCPcopy
hub / github.com/continuedev/continue / countTokens.test.ts

File countTokens.test.ts

core/llm/countTokens.test.ts:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1// @ts-nocheck
2// Generated by continue
3import { ChatMessage, MessagePart, ToolCall } from "../index.js";
4import {

Callers

nothing calls this directly

Calls 14

cleanupAsyncEncodersFunction · 0.85
countTokensAsyncFunction · 0.85
pruneRawPromptFromTopFunction · 0.85
pruneStringFromTopFunction · 0.85
pruneStringFromBottomFunction · 0.85
createUserMessageFunction · 0.85
extractToolSequenceFunction · 0.85
createToolCallFunction · 0.85
createAssistantMessageFunction · 0.85
createToolMessageFunction · 0.85
countTokensFunction · 0.70
pruneLinesFromTopFunction · 0.70

Tested by

no test coverage detected