From b672acd68c814955e7ae2aa6307f029bc867278e Mon Sep 17 00:00:00 2001 From: jacoblee93 Date: Fri, 13 Dec 2024 21:40:36 -0800 Subject: [PATCH] Lint --- examples/src/tools/google_scholar.ts | 15 --------------- .../src/tools/tests/google_scholar.int.test.ts | 2 +- 2 files changed, 1 insertion(+), 16 deletions(-) delete mode 100644 examples/src/tools/google_scholar.ts diff --git a/examples/src/tools/google_scholar.ts b/examples/src/tools/google_scholar.ts deleted file mode 100644 index bcf84b9e904e..000000000000 --- a/examples/src/tools/google_scholar.ts +++ /dev/null @@ -1,15 +0,0 @@ -import { SERPGoogleScholarAPITool } from "@langchain/community/tools/google_scholar"; - -const scholar = new SERPGoogleScholarAPITool({ - apiKey: process.env.SERPAPI_API_KEY, -}); - -(async () => { - try { - const query = "Attention is all we need"; - const results = await scholar.invoke(query); - console.log("Search Results:", results); - } catch (error) { - console.error("Error querying Google Scholar via SerpApi:", error); - } -})(); diff --git a/libs/langchain-community/src/tools/tests/google_scholar.int.test.ts b/libs/langchain-community/src/tools/tests/google_scholar.int.test.ts index 0f6f19d45158..fe243ae42aa9 100644 --- a/libs/langchain-community/src/tools/tests/google_scholar.int.test.ts +++ b/libs/langchain-community/src/tools/tests/google_scholar.int.test.ts @@ -1,6 +1,6 @@ import { test, expect, describe } from "@jest/globals"; -import { SERPGoogleScholarAPITool } from "../google_scholar.js"; import { getEnvironmentVariable } from "@langchain/core/utils/env"; +import { SERPGoogleScholarAPITool } from "../google_scholar.js"; describe("SERPGoogleScholarAPITool", () => { test("should be setup with correct parameters", async () => {