Skip to content

Commit

Permalink
community: Standardise tool import for arxiv & semantic scholar (#23578)
Browse files Browse the repository at this point in the history
- **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
  • Loading branch information
theRealNG committed Jun 27, 2024
1 parent d04f657 commit 5e6d23f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions libs/community/langchain_community/tools/arxiv/__init__.py
Original file line number Diff line number Diff line change
@@ -1 1,6 @@
from langchain_community.tools.arxiv.tool import ArxivQueryRun

"""Arxiv API toolkit."""
"""Tool for the Arxiv Search API."""

__all__ = ["ArxivQueryRun"]
Original file line number Diff line number Diff line change
@@ -1 1,6 @@
from langchain_community.tools.semanticscholar.tool import SemanticScholarQueryRun

"""Semantic Scholar API toolkit."""
"""Tool for the Semantic Scholar Search API."""

__all__ = ["SemanticScholarQueryRun"]

0 comments on commit 5e6d23f

Please sign in to comment.