Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/openai/plugins
/ sumTokenCounts
Function
sumTokenCounts
plugins/plugin-eval/src/lib/tokens.js:8–10 ·
view source on GitHub ↗
(items)
Source
from the content-addressed store, hash-verified
6
}
7
8
export
function
sumTokenCounts(items) {
9
return
items.reduce((total, item) => total + item.tokens, 0);
10
}
Callers
3
computeSkillBudget
Function · 0.90
computePluginBudget
Function · 0.90
computeBudgetProfile
Function · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected