community: Standardise tool import for arxiv & semantic scholar (#23578)

- **Description:** Fixing the way users have to import Arxiv and
Semantic Scholar
- **Issue:** Changed to use `from langchain_community.tools.arxiv import
ArxivQueryRun` instead of `from langchain_community.tools.arxiv.tool
import ArxivQueryRun`
    - **Dependencies:** None
    - **Twitter handle:** Nope
This commit is contained in:
NG Sai Prasanth authored and GitHub committed 2024-06-27 16:35:50 -04:00
1 parent d04f657424
commit 5e6d23f27d
2 files changed
+10

No files matched your search

@@ -1 +1,6 @@
from langchain_community.tools.arxiv.tool import ArxivQueryRun
"""Arxiv API toolkit."""
"""Tool for the Arxiv Search API."""
__all__ = ["ArxivQueryRun"]
@@ -1 +1,6 @@
from langchain_community.tools.semanticscholar.tool import SemanticScholarQueryRun
"""Semantic Scholar API toolkit."""
"""Tool for the Semantic Scholar Search API."""
__all__ = ["SemanticScholarQueryRun"]