MCPcopy Create free account
hub / github.com/QodeXcli/QodeX / setBackend

Method setBackend

src/tools/web/web-search.ts:99–101  ·  view source on GitHub ↗

Allow tests / callers to inject a stub backend.

(b: WebSearchBackend)

Source from the content-addressed store, hash-verified

97
98 /** Allow tests / callers to inject a stub backend. */
99 setBackend(b: WebSearchBackend): void {
100 this.injectedBackend = b;
101 }
102
103 async execute(args: z.infer<typeof WebSearchArgs>, ctx: ToolContext): Promise<ToolResult> {
104 const limit = args.limit ?? 5;

Callers 1

web-search.test.tsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected