Skip to content

Commit f88e395

Browse files
committed
Plugins: restore Tavily bundled resolver
1 parent 74cd448 commit f88e395

4 files changed

Lines changed: 18 additions & 0 deletions

File tree

src/plugins/bundled-web-search.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ describe("bundled web search metadata", () => {
7171
"google",
7272
"moonshot",
7373
"perplexity",
74+
"tavily",
7475
"xai",
7576
]);
7677
});

src/plugins/bundled-web-search.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,21 @@ const BUNDLED_WEB_SEARCH_PROVIDER_DESCRIPTORS = [
191191
credentialScope: { kind: "scoped", key: "firecrawl" },
192192
applySelectionConfig: (config) => enablePluginInConfig(config, "firecrawl").config,
193193
},
194+
{
195+
pluginId: "tavily",
196+
id: "tavily",
197+
label: "Tavily Search",
198+
hint: "Structured results with domain filters and AI answer summaries",
199+
envVars: ["TAVILY_API_KEY"],
200+
placeholder: "tvly-...",
201+
signupUrl: "https://tavily.com/",
202+
docsUrl: "https://docs.openclaw.ai/tools/tavily",
203+
autoDetectOrder: 70,
204+
credentialPath: "plugins.entries.tavily.config.webSearch.apiKey",
205+
inactiveSecretPaths: ["plugins.entries.tavily.config.webSearch.apiKey"],
206+
credentialScope: { kind: "scoped", key: "tavily" },
207+
applySelectionConfig: (config) => enablePluginInConfig(config, "tavily").config,
208+
},
194209
] as const satisfies ReadonlyArray<BundledWebSearchProviderDescriptor>;
195210

196211
export const BUNDLED_WEB_SEARCH_PLUGIN_IDS = [

src/plugins/contracts/registry.contract.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ describe("plugin contract registry", () => {
146146
expect(findWebSearchIdsForPlugin("google")).toEqual(["gemini"]);
147147
expect(findWebSearchIdsForPlugin("moonshot")).toEqual(["kimi"]);
148148
expect(findWebSearchIdsForPlugin("perplexity")).toEqual(["perplexity"]);
149+
expect(findWebSearchIdsForPlugin("tavily")).toEqual(["tavily"]);
149150
expect(findWebSearchIdsForPlugin("xai")).toEqual(["grok"]);
150151
});
151152

src/plugins/web-search-providers.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,7 @@ describe("resolvePluginWebSearchProviders", () => {
187187
"moonshot:kimi",
188188
"perplexity:perplexity",
189189
"firecrawl:firecrawl",
190+
"tavily:tavily",
190191
]);
191192
expect(loadOpenClawPluginsMock).not.toHaveBeenCalled();
192193
});

0 commit comments

Comments
 (0)