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 { TavilyExtract } from "@langchain/tavily";
import { tool } from "@langchain/core/tools";
import * as z from "zod"
import config from "../../../../conf.json" with { type: "json" };
const webFetchTool = tool(
async ({
@@ -10,7 +11,7 @@ const webFetchTool = tool(
urls = [],
}) => {
const tavilyExtract = new TavilyExtract({
tavilyApiKey: process.env.TAVILY_API_KEY,
tavilyApiKey: config.agent.tavily.apiKey,
extractDepth,
includeImages,
format