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

Function getUnsupportedToolReferencePatterns

src/utils/toolSearch.ts:212–226  ·  view source on GitHub ↗

* Get the list of model patterns that do NOT support tool_reference. * Can be configured via GrowthBook for live updates without code changes.

()

Source from the content-addressed store, hash-verified

210 * Can be configured via GrowthBook for live updates without code changes.
211 */
212function getUnsupportedToolReferencePatterns(): string[] {
213 try {
214 // Try to get from GrowthBook for live configuration
215 const patterns = getFeatureValue_CACHED_MAY_BE_STALE<string[] | null>(
216 'ncode_tool_search_unsupported_models',
217 null,
218 )
219 if (patterns && Array.isArray(patterns) && patterns.length > 0) {
220 return patterns
221 }
222 } catch {
223 // GrowthBook not ready, use defaults
224 }
225 return DEFAULT_UNSUPPORTED_MODEL_PATTERNS
226}
227
228/**
229 * Check if a model supports tool_reference blocks (required for tool search).

Callers 1

Tested by

no test coverage detected