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

Function searchToolRowsForConnection

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

Source from the content-addressed store, hash-verified

3691 );
3692
3693 const searchToolRowsForConnection = (
3694 parsed: ParsedToolAddress,
3695 ): Effect.Effect<readonly ToolInvocationRow[], StorageFailure> =>
3696 core.findMany("tool", {
3697 where: (b: AnyCb) =>
3698 b.and(
3699 toolRowsForConnectionWhere(parsed)(b),
3700 b.or(
3701 b("name", "contains", String(parsed.tool)),
3702 b("description", "contains", String(parsed.tool)),
3703 ),
3704 ),
3705 orderBy: ["name", "asc"],
3706 limit: TOOL_SUGGESTION_LIMIT,
3707 select: TOOL_INVOCATION_COLUMNS,
3708 });
3709
3710 const findToolRowsForConnection = (
3711 parsed: ParsedToolAddress,

Callers 1

executeFunction · 0.85

Calls 1

Tested by

no test coverage detected