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

Function searchToolRowsForConnection

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

Source from the content-addressed store, hash-verified

3344 );
3345
3346 const searchToolRowsForConnection = (
3347 parsed: ParsedToolAddress,
3348 ): Effect.Effect<readonly ToolInvocationRow[], StorageFailure> =>
3349 core.findMany("tool", {
3350 where: (b: AnyCb) =>
3351 b.and(
3352 toolRowsForConnectionWhere(parsed)(b),
3353 b.or(
3354 b("name", "contains", String(parsed.tool)),
3355 b("description", "contains", String(parsed.tool)),
3356 ),
3357 ),
3358 orderBy: ["name", "asc"],
3359 limit: TOOL_SUGGESTION_LIMIT,
3360 select: TOOL_INVOCATION_COLUMNS,
3361 });
3362
3363 const findToolRowsForConnection = (
3364 parsed: ParsedToolAddress,

Callers 1

executeFunction · 0.85

Calls 1

Tested by

no test coverage detected