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

Function searchToolRowsForConnection

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

Source from the content-addressed store, hash-verified

4263 );
4264
4265 const searchToolRowsForConnection = (
4266 parsed: ParsedToolAddress,
4267 ): Effect.Effect<readonly ToolInvocationRow[], StorageFailure> =>
4268 core.findMany("tool", {
4269 where: (b: AnyCb) =>
4270 b.and(
4271 toolRowsForConnectionWhere(parsed)(b),
4272 b.or(
4273 b("name", "contains", String(parsed.tool)),
4274 b("description", "contains", String(parsed.tool)),
4275 ),
4276 ),
4277 orderBy: ["name", "asc"],
4278 limit: TOOL_SUGGESTION_LIMIT,
4279 select: TOOL_INVOCATION_COLUMNS,
4280 });
4281
4282 const findToolRowsForConnection = (
4283 parsed: ParsedToolAddress,

Callers 1

executeFunction · 0.85

Calls 1

Tested by

no test coverage detected