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

Function prepareField

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

Source from the content-addressed store, hash-verified

518 .filter(Boolean);
519
520const prepareField = (value?: string): PreparedField => ({
521 raw: normalizeSearchText(value ?? ""),
522 tokens: tokenizeSearchText(value ?? ""),
523});
524
525const scorePreparedField = (
526 query: string,

Callers 1

scoreToolMatchFunction · 0.85

Calls 2

normalizeSearchTextFunction · 0.85
tokenizeSearchTextFunction · 0.85

Tested by

no test coverage detected