This commit is contained in:
lik
2026-09-02 22:39:04 +08:00
parent c95a9c4c95
commit f81f6906f0
24 changed files with 389 additions and 1024 deletions
+2 -1
View File
@@ -1,6 +1,7 @@
import { TavilySearch } from "@langchain/tavily";
import { tool } from "@langchain/core/tools";
import * as z from "zod"
import config from "../../../../conf.json" with { type: "json" };
const webSearchTool = tool(
async ({
@@ -11,7 +12,7 @@ const webSearchTool = tool(
}) => {
const tavilySearch = new TavilySearch({
maxResults,
tavilyApiKey: process.env.TAVILY_API_KEY,
tavilyApiKey: config.agent.tavily.apiKey,
includeRawContent,
topic,
});