-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: rename GoogleTrendsAPI to SERPGoogleTrendsTool. Also Add ne…
…w interfaces for lint warnings, and minor documentation updates
- Loading branch information
Showing
4 changed files
with
42 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
import { GoogleTrendsAPI } from "@langchain/community/tools/google_trends"; | ||
import { SERPGoogleTrendsTool } from "@langchain/community/tools/google_trends"; | ||
|
||
export async function run() { | ||
const tool = new GoogleTrendsAPI(); | ||
const tool = new SERPGoogleTrendsTool(); | ||
|
||
const res = await tool._call("Monster"); | ||
const res = await tool.invoke("Monster"); | ||
|
||
console.log(res); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters