Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
3
import
{ ChatMessage, MessagePart, ToolCall } from
"../index.js"
;
4
import
{
Callers
nothing calls this directly
Calls
14
cleanupAsyncEncoders
Function · 0.85
countTokensAsync
Function · 0.85
pruneRawPromptFromTop
Function · 0.85
pruneStringFromTop
Function · 0.85
pruneStringFromBottom
Function · 0.85
createUserMessage
Function · 0.85
extractToolSequence
Function · 0.85
createToolCall
Function · 0.85
createAssistantMessage
Function · 0.85
createToolMessage
Function · 0.85
countTokens
Function · 0.70
pruneLinesFromTop
Function · 0.70
Tested by
no test coverage detected