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

Interface WebSearchBackend

src/tools/web/types.ts:21–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19}
20
21export interface WebSearchBackend {
22 /** Human-readable backend name shown in errors / `qx doctor`. */
23 readonly name: string;
24 /** Whether this backend needs config (api key) to function. Default false. */
25 readonly requiresAuth: boolean;
26
27 /**
28 * Run the search. Should throw on transport-level failure (network, parse), not on
29 * "zero results" — zero results is a valid empty array.
30 */
31 search(query: string, opts: SearchOptions): Promise<WebSearchResult[]>;
32}
33
34export interface SearchOptions {
35 /** Max results to return (backend may cap lower). */

Callers 4

executeMethod · 0.65
executeMethod · 0.65
executeMethod · 0.65
extractOutlineFunction · 0.65

Implementers 4

FirecrawlBackendsrc/tools/web/firecrawl.ts
TavilyBackendsrc/tools/web/tavily.ts
DuckDuckGoBackendsrc/tools/web/duckduckgo.ts
BraveBackendsrc/tools/web/brave.ts

Calls

no outgoing calls

Tested by

no test coverage detected