MCPcopy 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
8export function sumTokenCounts(items) {
9 return items.reduce((total, item) => total + item.tokens, 0);
10}

Callers 3

computeSkillBudgetFunction · 0.90
computePluginBudgetFunction · 0.90
computeBudgetProfileFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected