MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / prepareField

Function prepareField

packages/core/execution/src/tool-invoker.ts:491–494  ·  view source on GitHub ↗
(value?: string)

Source from the content-addressed store, hash-verified

489 .filter(Boolean);
490
491const prepareField = (value?: string): PreparedField => ({
492 raw: normalizeSearchText(value ?? ""),
493 tokens: tokenizeSearchText(value ?? ""),
494});
495
496const scorePreparedField = (
497 query: string,

Callers 1

scoreToolMatchFunction · 0.85

Calls 2

normalizeSearchTextFunction · 0.85
tokenizeSearchTextFunction · 0.85

Tested by

no test coverage detected