MCPcopy Create free account
hub / github.com/Noumena-Network/code / getAutoToolSearchCharThreshold

Function getAutoToolSearchCharThreshold

src/utils/toolSearch.ts:117–119  ·  view source on GitHub ↗
(model: string)

Source from the content-addressed store, hash-verified

115 * Used as fallback when the token counting API is unavailable.
116 */
117export function getAutoToolSearchCharThreshold(model: string): number {
118 return Math.floor(getAutoToolSearchTokenThreshold(model) * CHARS_PER_TOKEN)
119}
120
121/**
122 * Get the total token count for all deferred tools using the token counting API.

Callers 1

checkAutoThresholdFunction · 0.85

Calls 1

Tested by

no test coverage detected