tmp
This commit is contained in:
@@ -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,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user