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

Function isAutoToolSearchMode

src/utils/toolSearch.ts:77–80  ·  view source on GitHub ↗

* Check if ENABLE_TOOL_SEARCH is set to auto mode (auto or auto:N).

(value: string | undefined)

Source from the content-addressed store, hash-verified

75 * Check if ENABLE_TOOL_SEARCH is set to auto mode (auto or auto:N).
76 */
77function isAutoToolSearchMode(value: string | undefined): boolean {
78 if (!value) return false
79 return value === 'auto' || value.startsWith('auto:')
80}
81
82/**
83 * Get the auto-enable percentage from env var or default.

Callers 1

getToolSearchModeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected