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 2024-06-28 02:05:50 +05:30 committed by GitHub
parent d04f657424
commit 5e6d23f27d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 10 additions and 0 deletions

View File

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

View File

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