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

Function prepareField

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

Source from the content-addressed store, hash-verified

451 .filter(Boolean);
452
453const prepareField = (value?: string): PreparedField => ({
454 raw: normalizeSearchText(value ?? ""),
455 tokens: tokenizeSearchText(value ?? ""),
456});
457
458const scorePreparedField = (
459 query: string,

Callers 1

scoreToolMatchFunction · 0.85

Calls 2

normalizeSearchTextFunction · 0.85
tokenizeSearchTextFunction · 0.85

Tested by

no test coverage detected