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

Function searchToolRowsForConnection

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

Source from the content-addressed store, hash-verified

3592 );
3593
3594 const searchToolRowsForConnection = (
3595 parsed: ParsedToolAddress,
3596 ): Effect.Effect<readonly ToolInvocationRow[], StorageFailure> =>
3597 core.findMany("tool", {
3598 where: (b: AnyCb) =>
3599 b.and(
3600 toolRowsForConnectionWhere(parsed)(b),
3601 b.or(
3602 b("name", "contains", String(parsed.tool)),
3603 b("description", "contains", String(parsed.tool)),
3604 ),
3605 ),
3606 orderBy: ["name", "asc"],
3607 limit: TOOL_SUGGESTION_LIMIT,
3608 select: TOOL_INVOCATION_COLUMNS,
3609 });
3610
3611 const findToolRowsForConnection = (
3612 parsed: ParsedToolAddress,

Callers 1

executeFunction · 0.85

Calls 1

Tested by

no test coverage detected