mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-27 09:02:15 +00:00
26 lines
813 B
TypeScript
26 lines
813 B
TypeScript
import {
|
|
createWebSearchProviderContractFields,
|
|
type WebSearchProviderPlugin,
|
|
} from "openclaw/plugin-sdk/provider-web-search-contract";
|
|
|
|
export function createDuckDuckGoWebSearchProvider(): WebSearchProviderPlugin {
|
|
return {
|
|
id: "duckduckgo",
|
|
label: "DuckDuckGo Search (experimental)",
|
|
hint: "Free web search fallback with no API key required",
|
|
requiresCredential: false,
|
|
envVars: [],
|
|
placeholder: "(no key needed)",
|
|
signupUrl: "https://duckduckgo.com/",
|
|
docsUrl: "https://docs.openclaw.ai/tools/web",
|
|
autoDetectOrder: 100,
|
|
credentialPath: "",
|
|
...createWebSearchProviderContractFields({
|
|
credentialPath: "",
|
|
searchCredential: { type: "scoped", scopeId: "duckduckgo" },
|
|
selectionPluginId: "duckduckgo",
|
|
}),
|
|
createTool: () => null,
|
|
};
|
|
}
|