initial commit
This commit is contained in:
@@ -0,0 +1 @@
|
||||
"""Arxiv API toolkit."""
|
||||
Binary file not shown.
Binary file not shown.
28
venv/Lib/site-packages/langchain_classic/tools/arxiv/tool.py
Normal file
28
venv/Lib/site-packages/langchain_classic/tools/arxiv/tool.py
Normal file
@@ -0,0 +1,28 @@
|
||||
from typing import TYPE_CHECKING, Any
|
||||
|
||||
from langchain_classic._api import create_importer
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from langchain_community.tools import ArxivQueryRun
|
||||
from langchain_community.tools.arxiv.tool import ArxivInput
|
||||
|
||||
# Create a way to dynamically look up deprecated imports.
|
||||
# Used to consolidate logic for raising deprecation warnings and
|
||||
# handling optional imports.
|
||||
DEPRECATED_LOOKUP = {
|
||||
"ArxivInput": "langchain_community.tools.arxiv.tool",
|
||||
"ArxivQueryRun": "langchain_community.tools",
|
||||
}
|
||||
|
||||
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
|
||||
|
||||
|
||||
def __getattr__(name: str) -> Any:
|
||||
"""Look up attributes dynamically."""
|
||||
return _import_attribute(name)
|
||||
|
||||
|
||||
__all__ = [
|
||||
"ArxivInput",
|
||||
"ArxivQueryRun",
|
||||
]
|
||||
Reference in New Issue
Block a user