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

Function searchToolRowsForConnection

packages/core/sdk/src/executor.ts:6416–6431  ·  view source on GitHub ↗
(
      parsed: ParsedToolAddress,
    )

Source from the content-addressed store, hash-verified

6414 );
6415
6416 const searchToolRowsForConnection = (
6417 parsed: ParsedToolAddress,
6418 ): Effect.Effect<readonly ToolInvocationRow[], StorageFailure> =>
6419 core.findMany("tool", {
6420 where: (b: AnyCb) =>
6421 b.and(
6422 toolRowsForConnectionWhere(parsed)(b),
6423 b.or(
6424 b("name", "contains", String(parsed.tool)),
6425 b("description", "contains", String(parsed.tool)),
6426 ),
6427 ),
6428 orderBy: ["name", "asc"],
6429 limit: TOOL_SUGGESTION_LIMIT,
6430 select: TOOL_INVOCATION_COLUMNS,
6431 });
6432
6433 const findToolRowsForConnection = (
6434 parsed: ParsedToolAddress,

Callers 1

executeFunction · 0.85

Calls 1

Tested by

no test coverage detected