Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MoonshotAI/kimi-code
/ tokens.test.ts
File
tokens.test.ts
packages/agent-core/test/utils/tokens.test.ts:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
import
type
{ ContentPart } from
'@moonshot-ai/kosong'
;
2
import
{ describe, expect, it } from
'vitest'
;
3
4
import
{
Callers
nothing calls this directly
Calls
2
estimateTokensForContentPart
Function · 0.90
estimateTokensForMessage
Function · 0.90
Tested by
no test coverage detected