langchain[patch]: Migrate tools to treat community imports as optional (#21117)

Migrate tools to treat community imports as optional
pull/21115/head
Eugene Yurtsev 4 weeks ago committed by GitHub
parent 9e788f09c6
commit e4f51f59a2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -1,7 +1,27 @@
"""Amadeus tools."""
from typing import TYPE_CHECKING, Any
from langchain._api import create_importer
if TYPE_CHECKING:
from langchain_community.tools.amadeus.closest_airport import AmadeusClosestAirport
from langchain_community.tools.amadeus.flight_search import AmadeusFlightSearch
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional imports.
DEPRECATED_LOOKUP = {
"AmadeusClosestAirport": "langchain_community.tools.amadeus.closest_airport",
"AmadeusFlightSearch": "langchain_community.tools.amadeus.flight_search",
}
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
def __getattr__(name: str) -> Any:
"""Look up attributes dynamically."""
return _import_attribute(name)
from langchain_community.tools.amadeus.closest_airport import AmadeusClosestAirport
from langchain_community.tools.amadeus.flight_search import AmadeusFlightSearch
__all__ = [
"AmadeusClosestAirport",

@ -1,3 +1,23 @@
from langchain_community.tools.amadeus.base import AmadeusBaseTool
from typing import TYPE_CHECKING, Any
__all__ = ["AmadeusBaseTool"]
from langchain._api import create_importer
if TYPE_CHECKING:
from langchain_community.tools.amadeus.base import AmadeusBaseTool
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional imports.
DEPRECATED_LOOKUP = {"AmadeusBaseTool": "langchain_community.tools.amadeus.base"}
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
def __getattr__(name: str) -> Any:
"""Look up attributes dynamically."""
return _import_attribute(name)
__all__ = [
"AmadeusBaseTool",
]

@ -1,6 +1,30 @@
from langchain_community.tools.amadeus.closest_airport import (
AmadeusClosestAirport,
ClosestAirportSchema,
)
from typing import TYPE_CHECKING, Any
__all__ = ["ClosestAirportSchema", "AmadeusClosestAirport"]
from langchain._api import create_importer
if TYPE_CHECKING:
from langchain_community.tools.amadeus.closest_airport import (
AmadeusClosestAirport,
ClosestAirportSchema,
)
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional imports.
DEPRECATED_LOOKUP = {
"ClosestAirportSchema": "langchain_community.tools.amadeus.closest_airport",
"AmadeusClosestAirport": "langchain_community.tools.amadeus.closest_airport",
}
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
def __getattr__(name: str) -> Any:
"""Look up attributes dynamically."""
return _import_attribute(name)
__all__ = [
"ClosestAirportSchema",
"AmadeusClosestAirport",
]

@ -1,6 +1,30 @@
from langchain_community.tools.amadeus.flight_search import (
AmadeusFlightSearch,
FlightSearchSchema,
)
from typing import TYPE_CHECKING, Any
__all__ = ["FlightSearchSchema", "AmadeusFlightSearch"]
from langchain._api import create_importer
if TYPE_CHECKING:
from langchain_community.tools.amadeus.flight_search import (
AmadeusFlightSearch,
FlightSearchSchema,
)
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional imports.
DEPRECATED_LOOKUP = {
"FlightSearchSchema": "langchain_community.tools.amadeus.flight_search",
"AmadeusFlightSearch": "langchain_community.tools.amadeus.flight_search",
}
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
def __getattr__(name: str) -> Any:
"""Look up attributes dynamically."""
return _import_attribute(name)
__all__ = [
"FlightSearchSchema",
"AmadeusFlightSearch",
]

@ -1,3 +1,28 @@
from langchain_community.tools.arxiv.tool import ArxivInput, ArxivQueryRun
from typing import TYPE_CHECKING, Any
__all__ = ["ArxivInput", "ArxivQueryRun"]
from langchain._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",
]

@ -1,20 +1,35 @@
"""Azure Cognitive Services Tools."""
from typing import TYPE_CHECKING, Any
from langchain._api import create_importer
if TYPE_CHECKING:
from langchain_community.tools import (
AzureCogsFormRecognizerTool,
AzureCogsImageAnalysisTool,
AzureCogsSpeech2TextTool,
AzureCogsText2SpeechTool,
AzureCogsTextAnalyticsHealthTool,
)
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional imports.
DEPRECATED_LOOKUP = {
"AzureCogsImageAnalysisTool": "langchain_community.tools",
"AzureCogsFormRecognizerTool": "langchain_community.tools",
"AzureCogsSpeech2TextTool": "langchain_community.tools",
"AzureCogsText2SpeechTool": "langchain_community.tools",
"AzureCogsTextAnalyticsHealthTool": "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)
from langchain_community.tools.azure_cognitive_services.form_recognizer import (
AzureCogsFormRecognizerTool,
)
from langchain_community.tools.azure_cognitive_services.image_analysis import (
AzureCogsImageAnalysisTool,
)
from langchain_community.tools.azure_cognitive_services.speech2text import (
AzureCogsSpeech2TextTool,
)
from langchain_community.tools.azure_cognitive_services.text2speech import (
AzureCogsText2SpeechTool,
)
from langchain_community.tools.azure_cognitive_services.text_analytics_health import (
AzureCogsTextAnalyticsHealthTool,
)
__all__ = [
"AzureCogsImageAnalysisTool",

@ -1,5 +1,23 @@
from langchain_community.tools.azure_cognitive_services.form_recognizer import (
AzureCogsFormRecognizerTool,
)
from typing import TYPE_CHECKING, Any
__all__ = ["AzureCogsFormRecognizerTool"]
from langchain._api import create_importer
if TYPE_CHECKING:
from langchain_community.tools import AzureCogsFormRecognizerTool
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional imports.
DEPRECATED_LOOKUP = {"AzureCogsFormRecognizerTool": "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__ = [
"AzureCogsFormRecognizerTool",
]

@ -1,5 +1,23 @@
from langchain_community.tools.azure_cognitive_services.image_analysis import (
AzureCogsImageAnalysisTool,
)
from typing import TYPE_CHECKING, Any
__all__ = ["AzureCogsImageAnalysisTool"]
from langchain._api import create_importer
if TYPE_CHECKING:
from langchain_community.tools import AzureCogsImageAnalysisTool
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional imports.
DEPRECATED_LOOKUP = {"AzureCogsImageAnalysisTool": "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__ = [
"AzureCogsImageAnalysisTool",
]

@ -1,5 +1,23 @@
from langchain_community.tools.azure_cognitive_services.speech2text import (
AzureCogsSpeech2TextTool,
)
from typing import TYPE_CHECKING, Any
__all__ = ["AzureCogsSpeech2TextTool"]
from langchain._api import create_importer
if TYPE_CHECKING:
from langchain_community.tools import AzureCogsSpeech2TextTool
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional imports.
DEPRECATED_LOOKUP = {"AzureCogsSpeech2TextTool": "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__ = [
"AzureCogsSpeech2TextTool",
]

@ -1,5 +1,23 @@
from langchain_community.tools.azure_cognitive_services.text2speech import (
AzureCogsText2SpeechTool,
)
from typing import TYPE_CHECKING, Any
__all__ = ["AzureCogsText2SpeechTool"]
from langchain._api import create_importer
if TYPE_CHECKING:
from langchain_community.tools import AzureCogsText2SpeechTool
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional imports.
DEPRECATED_LOOKUP = {"AzureCogsText2SpeechTool": "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__ = [
"AzureCogsText2SpeechTool",
]

@ -1,5 +1,23 @@
from langchain_community.tools.azure_cognitive_services.text_analytics_health import (
AzureCogsTextAnalyticsHealthTool,
)
from typing import TYPE_CHECKING, Any
__all__ = ["AzureCogsTextAnalyticsHealthTool"]
from langchain._api import create_importer
if TYPE_CHECKING:
from langchain_community.tools import AzureCogsTextAnalyticsHealthTool
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional imports.
DEPRECATED_LOOKUP = {"AzureCogsTextAnalyticsHealthTool": "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__ = [
"AzureCogsTextAnalyticsHealthTool",
]

@ -1,8 +1,30 @@
from langchain_community.tools.bearly.tool import (
BearlyInterpreterTool,
BearlyInterpreterToolArguments,
FileInfo,
)
from typing import TYPE_CHECKING, Any
from langchain._api import create_importer
if TYPE_CHECKING:
from langchain_community.tools import BearlyInterpreterTool
from langchain_community.tools.bearly.tool import (
BearlyInterpreterToolArguments,
FileInfo,
)
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional imports.
DEPRECATED_LOOKUP = {
"BearlyInterpreterToolArguments": "langchain_community.tools.bearly.tool",
"FileInfo": "langchain_community.tools.bearly.tool",
"BearlyInterpreterTool": "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__ = [
"BearlyInterpreterToolArguments",

@ -1,5 +1,28 @@
"""Bing Search API toolkit."""
from typing import TYPE_CHECKING, Any
from langchain_community.tools.bing_search.tool import BingSearchResults, BingSearchRun
from langchain._api import create_importer
__all__ = ["BingSearchRun", "BingSearchResults"]
if TYPE_CHECKING:
from langchain_community.tools import BingSearchResults, BingSearchRun
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional imports.
DEPRECATED_LOOKUP = {
"BingSearchRun": "langchain_community.tools",
"BingSearchResults": "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__ = [
"BingSearchRun",
"BingSearchResults",
]

@ -1,3 +1,27 @@
from langchain_community.tools.bing_search.tool import BingSearchResults, BingSearchRun
from typing import TYPE_CHECKING, Any
__all__ = ["BingSearchRun", "BingSearchResults"]
from langchain._api import create_importer
if TYPE_CHECKING:
from langchain_community.tools import BingSearchResults, BingSearchRun
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional imports.
DEPRECATED_LOOKUP = {
"BingSearchRun": "langchain_community.tools",
"BingSearchResults": "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__ = [
"BingSearchRun",
"BingSearchResults",
]

@ -1,3 +1,23 @@
from langchain_community.tools.brave_search.tool import BraveSearch
from typing import TYPE_CHECKING, Any
__all__ = ["BraveSearch"]
from langchain._api import create_importer
if TYPE_CHECKING:
from langchain_community.tools import BraveSearch
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional imports.
DEPRECATED_LOOKUP = {"BraveSearch": "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__ = [
"BraveSearch",
]

@ -1,3 +1,23 @@
from langchain_community.tools.clickup.tool import ClickupAction
from typing import TYPE_CHECKING, Any
__all__ = ["ClickupAction"]
from langchain._api import create_importer
if TYPE_CHECKING:
from langchain_community.tools.clickup.tool import ClickupAction
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional imports.
DEPRECATED_LOOKUP = {"ClickupAction": "langchain_community.tools.clickup.tool"}
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
def __getattr__(name: str) -> Any:
"""Look up attributes dynamically."""
return _import_attribute(name)
__all__ = [
"ClickupAction",
]

@ -1,9 +1,33 @@
from langchain_community.tools.dataforseo_api_search.tool import (
DataForSeoAPISearchResults,
DataForSeoAPISearchRun,
)
"""DataForSeo API Toolkit."""
"""Tool for the DataForSeo SERP API."""
from typing import TYPE_CHECKING, Any
from langchain._api import create_importer
if TYPE_CHECKING:
from langchain_community.tools.dataforseo_api_search.tool import (
DataForSeoAPISearchResults,
DataForSeoAPISearchRun,
)
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional imports.
DEPRECATED_LOOKUP = {
"DataForSeoAPISearchRun": "langchain_community.tools.dataforseo_api_search.tool",
"DataForSeoAPISearchResults": (
"langchain_community.tools.dataforseo_api_search.tool"
),
}
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
def __getattr__(name: str) -> Any:
"""Look up attributes dynamically."""
return _import_attribute(name)
__all__ = ["DataForSeoAPISearchRun", "DataForSeoAPISearchResults"]
__all__ = [
"DataForSeoAPISearchRun",
"DataForSeoAPISearchResults",
]

@ -1,6 +1,32 @@
from langchain_community.tools.dataforseo_api_search.tool import (
DataForSeoAPISearchResults,
DataForSeoAPISearchRun,
)
from typing import TYPE_CHECKING, Any
__all__ = ["DataForSeoAPISearchRun", "DataForSeoAPISearchResults"]
from langchain._api import create_importer
if TYPE_CHECKING:
from langchain_community.tools.dataforseo_api_search.tool import (
DataForSeoAPISearchResults,
DataForSeoAPISearchRun,
)
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional imports.
DEPRECATED_LOOKUP = {
"DataForSeoAPISearchRun": "langchain_community.tools.dataforseo_api_search.tool",
"DataForSeoAPISearchResults": (
"langchain_community.tools.dataforseo_api_search.tool"
),
}
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
def __getattr__(name: str) -> Any:
"""Look up attributes dynamically."""
return _import_attribute(name)
__all__ = [
"DataForSeoAPISearchRun",
"DataForSeoAPISearchResults",
]

@ -1,5 +1,24 @@
"""DuckDuckGo Search API toolkit."""
from typing import TYPE_CHECKING, Any
from langchain_community.tools.ddg_search.tool import DuckDuckGoSearchRun
from langchain._api import create_importer
__all__ = ["DuckDuckGoSearchRun"]
if TYPE_CHECKING:
from langchain_community.tools import DuckDuckGoSearchRun
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional imports.
DEPRECATED_LOOKUP = {"DuckDuckGoSearchRun": "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__ = [
"DuckDuckGoSearchRun",
]

@ -1,9 +1,28 @@
from langchain_community.tools.ddg_search.tool import (
DDGInput,
DuckDuckGoSearchResults,
DuckDuckGoSearchRun,
DuckDuckGoSearchTool,
)
from typing import TYPE_CHECKING, Any
from langchain._api import create_importer
if TYPE_CHECKING:
from langchain_community.tools import DuckDuckGoSearchResults, DuckDuckGoSearchRun
from langchain_community.tools.ddg_search.tool import DDGInput, DuckDuckGoSearchTool
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional imports.
DEPRECATED_LOOKUP = {
"DDGInput": "langchain_community.tools.ddg_search.tool",
"DuckDuckGoSearchRun": "langchain_community.tools",
"DuckDuckGoSearchResults": "langchain_community.tools",
"DuckDuckGoSearchTool": "langchain_community.tools.ddg_search.tool",
}
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
def __getattr__(name: str) -> Any:
"""Look up attributes dynamically."""
return _import_attribute(name)
__all__ = [
"DDGInput",

@ -1,8 +1,30 @@
from langchain_community.tools.e2b_data_analysis.tool import (
E2BDataAnalysisTool,
E2BDataAnalysisToolArguments,
UploadedFile,
)
from typing import TYPE_CHECKING, Any
from langchain._api import create_importer
if TYPE_CHECKING:
from langchain_community.tools import E2BDataAnalysisTool
from langchain_community.tools.e2b_data_analysis.tool import (
E2BDataAnalysisToolArguments,
UploadedFile,
)
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional imports.
DEPRECATED_LOOKUP = {
"UploadedFile": "langchain_community.tools.e2b_data_analysis.tool",
"E2BDataAnalysisToolArguments": "langchain_community.tools.e2b_data_analysis.tool",
"E2BDataAnalysisTool": "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__ = [
"UploadedFile",

@ -1,26 +1,41 @@
"""Edenai Tools."""
from langchain_community.tools.edenai.audio_speech_to_text import (
EdenAiSpeechToTextTool,
)
from langchain_community.tools.edenai.audio_text_to_speech import (
EdenAiTextToSpeechTool,
)
from langchain_community.tools.edenai.edenai_base_tool import EdenaiTool
from langchain_community.tools.edenai.image_explicitcontent import (
EdenAiExplicitImageTool,
)
from langchain_community.tools.edenai.image_objectdetection import (
EdenAiObjectDetectionTool,
)
from langchain_community.tools.edenai.ocr_identityparser import (
EdenAiParsingIDTool,
)
from langchain_community.tools.edenai.ocr_invoiceparser import (
EdenAiParsingInvoiceTool,
)
from langchain_community.tools.edenai.text_moderation import (
EdenAiTextModerationTool,
)
from typing import TYPE_CHECKING, Any
from langchain._api import create_importer
if TYPE_CHECKING:
from langchain_community.tools import (
EdenAiExplicitImageTool,
EdenAiObjectDetectionTool,
EdenAiParsingIDTool,
EdenAiParsingInvoiceTool,
EdenAiSpeechToTextTool,
EdenAiTextModerationTool,
EdenAiTextToSpeechTool,
EdenaiTool,
)
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional imports.
DEPRECATED_LOOKUP = {
"EdenAiExplicitImageTool": "langchain_community.tools",
"EdenAiObjectDetectionTool": "langchain_community.tools",
"EdenAiParsingIDTool": "langchain_community.tools",
"EdenAiParsingInvoiceTool": "langchain_community.tools",
"EdenAiTextToSpeechTool": "langchain_community.tools",
"EdenAiSpeechToTextTool": "langchain_community.tools",
"EdenAiTextModerationTool": "langchain_community.tools",
"EdenaiTool": "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__ = [
"EdenAiExplicitImageTool",

@ -1,3 +1,23 @@
from langchain_community.tools.edenai.audio_speech_to_text import EdenAiSpeechToTextTool
from typing import TYPE_CHECKING, Any
__all__ = ["EdenAiSpeechToTextTool"]
from langchain._api import create_importer
if TYPE_CHECKING:
from langchain_community.tools import EdenAiSpeechToTextTool
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional imports.
DEPRECATED_LOOKUP = {"EdenAiSpeechToTextTool": "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__ = [
"EdenAiSpeechToTextTool",
]

@ -1,3 +1,23 @@
from langchain_community.tools.edenai.audio_text_to_speech import EdenAiTextToSpeechTool
from typing import TYPE_CHECKING, Any
__all__ = ["EdenAiTextToSpeechTool"]
from langchain._api import create_importer
if TYPE_CHECKING:
from langchain_community.tools import EdenAiTextToSpeechTool
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional imports.
DEPRECATED_LOOKUP = {"EdenAiTextToSpeechTool": "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__ = [
"EdenAiTextToSpeechTool",
]

@ -1,3 +1,23 @@
from langchain_community.tools.edenai.edenai_base_tool import EdenaiTool
from typing import TYPE_CHECKING, Any
__all__ = ["EdenaiTool"]
from langchain._api import create_importer
if TYPE_CHECKING:
from langchain_community.tools import EdenaiTool
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional imports.
DEPRECATED_LOOKUP = {"EdenaiTool": "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__ = [
"EdenaiTool",
]

@ -1,5 +1,23 @@
from langchain_community.tools.edenai.image_explicitcontent import (
EdenAiExplicitImageTool,
)
from typing import TYPE_CHECKING, Any
__all__ = ["EdenAiExplicitImageTool"]
from langchain._api import create_importer
if TYPE_CHECKING:
from langchain_community.tools import EdenAiExplicitImageTool
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional imports.
DEPRECATED_LOOKUP = {"EdenAiExplicitImageTool": "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__ = [
"EdenAiExplicitImageTool",
]

@ -1,5 +1,23 @@
from langchain_community.tools.edenai.image_objectdetection import (
EdenAiObjectDetectionTool,
)
from typing import TYPE_CHECKING, Any
__all__ = ["EdenAiObjectDetectionTool"]
from langchain._api import create_importer
if TYPE_CHECKING:
from langchain_community.tools import EdenAiObjectDetectionTool
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional imports.
DEPRECATED_LOOKUP = {"EdenAiObjectDetectionTool": "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__ = [
"EdenAiObjectDetectionTool",
]

@ -1,3 +1,23 @@
from langchain_community.tools.edenai.ocr_identityparser import EdenAiParsingIDTool
from typing import TYPE_CHECKING, Any
__all__ = ["EdenAiParsingIDTool"]
from langchain._api import create_importer
if TYPE_CHECKING:
from langchain_community.tools import EdenAiParsingIDTool
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional imports.
DEPRECATED_LOOKUP = {"EdenAiParsingIDTool": "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__ = [
"EdenAiParsingIDTool",
]

@ -1,3 +1,23 @@
from langchain_community.tools.edenai.ocr_invoiceparser import EdenAiParsingInvoiceTool
from typing import TYPE_CHECKING, Any
__all__ = ["EdenAiParsingInvoiceTool"]
from langchain._api import create_importer
if TYPE_CHECKING:
from langchain_community.tools import EdenAiParsingInvoiceTool
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional imports.
DEPRECATED_LOOKUP = {"EdenAiParsingInvoiceTool": "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__ = [
"EdenAiParsingInvoiceTool",
]

@ -1,3 +1,23 @@
from langchain_community.tools.edenai.text_moderation import EdenAiTextModerationTool
from typing import TYPE_CHECKING, Any
__all__ = ["EdenAiTextModerationTool"]
from langchain._api import create_importer
if TYPE_CHECKING:
from langchain_community.tools import EdenAiTextModerationTool
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional imports.
DEPRECATED_LOOKUP = {"EdenAiTextModerationTool": "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__ = [
"EdenAiTextModerationTool",
]

@ -1,5 +1,24 @@
"""Eleven Labs Services Tools."""
from typing import TYPE_CHECKING, Any
from langchain_community.tools.eleven_labs.text2speech import ElevenLabsText2SpeechTool
from langchain._api import create_importer
__all__ = ["ElevenLabsText2SpeechTool"]
if TYPE_CHECKING:
from langchain_community.tools import ElevenLabsText2SpeechTool
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional imports.
DEPRECATED_LOOKUP = {"ElevenLabsText2SpeechTool": "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__ = [
"ElevenLabsText2SpeechTool",
]

@ -1,3 +1,23 @@
from langchain_community.tools.eleven_labs.models import ElevenLabsModel
from typing import TYPE_CHECKING, Any
__all__ = ["ElevenLabsModel"]
from langchain._api import create_importer
if TYPE_CHECKING:
from langchain_community.tools.eleven_labs.models import ElevenLabsModel
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional imports.
DEPRECATED_LOOKUP = {"ElevenLabsModel": "langchain_community.tools.eleven_labs.models"}
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
def __getattr__(name: str) -> Any:
"""Look up attributes dynamically."""
return _import_attribute(name)
__all__ = [
"ElevenLabsModel",
]

@ -1,5 +1,23 @@
from langchain_community.tools.eleven_labs.text2speech import (
ElevenLabsText2SpeechTool,
)
from typing import TYPE_CHECKING, Any
__all__ = ["ElevenLabsText2SpeechTool"]
from langchain._api import create_importer
if TYPE_CHECKING:
from langchain_community.tools import ElevenLabsText2SpeechTool
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional imports.
DEPRECATED_LOOKUP = {"ElevenLabsText2SpeechTool": "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__ = [
"ElevenLabsText2SpeechTool",
]

@ -1,12 +1,39 @@
"""File Management Tools."""
from typing import TYPE_CHECKING, Any
from langchain._api import create_importer
if TYPE_CHECKING:
from langchain_community.tools import (
CopyFileTool,
DeleteFileTool,
FileSearchTool,
ListDirectoryTool,
MoveFileTool,
ReadFileTool,
WriteFileTool,
)
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional imports.
DEPRECATED_LOOKUP = {
"CopyFileTool": "langchain_community.tools",
"DeleteFileTool": "langchain_community.tools",
"FileSearchTool": "langchain_community.tools",
"MoveFileTool": "langchain_community.tools",
"ReadFileTool": "langchain_community.tools",
"WriteFileTool": "langchain_community.tools",
"ListDirectoryTool": "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)
from langchain_community.tools.file_management.copy import CopyFileTool
from langchain_community.tools.file_management.delete import DeleteFileTool
from langchain_community.tools.file_management.file_search import FileSearchTool
from langchain_community.tools.file_management.list_dir import ListDirectoryTool
from langchain_community.tools.file_management.move import MoveFileTool
from langchain_community.tools.file_management.read import ReadFileTool
from langchain_community.tools.file_management.write import WriteFileTool
__all__ = [
"CopyFileTool",

@ -1,3 +1,28 @@
from langchain_community.tools.file_management.copy import CopyFileTool, FileCopyInput
from typing import TYPE_CHECKING, Any
__all__ = ["FileCopyInput", "CopyFileTool"]
from langchain._api import create_importer
if TYPE_CHECKING:
from langchain_community.tools import CopyFileTool
from langchain_community.tools.file_management.copy import FileCopyInput
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional imports.
DEPRECATED_LOOKUP = {
"FileCopyInput": "langchain_community.tools.file_management.copy",
"CopyFileTool": "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__ = [
"FileCopyInput",
"CopyFileTool",
]

@ -1,6 +1,28 @@
from langchain_community.tools.file_management.delete import (
DeleteFileTool,
FileDeleteInput,
)
from typing import TYPE_CHECKING, Any
__all__ = ["FileDeleteInput", "DeleteFileTool"]
from langchain._api import create_importer
if TYPE_CHECKING:
from langchain_community.tools import DeleteFileTool
from langchain_community.tools.file_management.delete import FileDeleteInput
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional imports.
DEPRECATED_LOOKUP = {
"FileDeleteInput": "langchain_community.tools.file_management.delete",
"DeleteFileTool": "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__ = [
"FileDeleteInput",
"DeleteFileTool",
]

@ -1,6 +1,28 @@
from langchain_community.tools.file_management.file_search import (
FileSearchInput,
FileSearchTool,
)
from typing import TYPE_CHECKING, Any
__all__ = ["FileSearchInput", "FileSearchTool"]
from langchain._api import create_importer
if TYPE_CHECKING:
from langchain_community.tools import FileSearchTool
from langchain_community.tools.file_management.file_search import FileSearchInput
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional imports.
DEPRECATED_LOOKUP = {
"FileSearchInput": "langchain_community.tools.file_management.file_search",
"FileSearchTool": "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__ = [
"FileSearchInput",
"FileSearchTool",
]

@ -1,6 +1,28 @@
from langchain_community.tools.file_management.list_dir import (
DirectoryListingInput,
ListDirectoryTool,
)
from typing import TYPE_CHECKING, Any
__all__ = ["DirectoryListingInput", "ListDirectoryTool"]
from langchain._api import create_importer
if TYPE_CHECKING:
from langchain_community.tools import ListDirectoryTool
from langchain_community.tools.file_management.list_dir import DirectoryListingInput
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional imports.
DEPRECATED_LOOKUP = {
"DirectoryListingInput": "langchain_community.tools.file_management.list_dir",
"ListDirectoryTool": "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__ = [
"DirectoryListingInput",
"ListDirectoryTool",
]

@ -1,3 +1,28 @@
from langchain_community.tools.file_management.move import FileMoveInput, MoveFileTool
from typing import TYPE_CHECKING, Any
__all__ = ["FileMoveInput", "MoveFileTool"]
from langchain._api import create_importer
if TYPE_CHECKING:
from langchain_community.tools import MoveFileTool
from langchain_community.tools.file_management.move import FileMoveInput
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional imports.
DEPRECATED_LOOKUP = {
"FileMoveInput": "langchain_community.tools.file_management.move",
"MoveFileTool": "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__ = [
"FileMoveInput",
"MoveFileTool",
]

@ -1,3 +1,28 @@
from langchain_community.tools.file_management.read import ReadFileInput, ReadFileTool
from typing import TYPE_CHECKING, Any
__all__ = ["ReadFileInput", "ReadFileTool"]
from langchain._api import create_importer
if TYPE_CHECKING:
from langchain_community.tools import ReadFileTool
from langchain_community.tools.file_management.read import ReadFileInput
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional imports.
DEPRECATED_LOOKUP = {
"ReadFileInput": "langchain_community.tools.file_management.read",
"ReadFileTool": "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__ = [
"ReadFileInput",
"ReadFileTool",
]

@ -1,6 +1,28 @@
from langchain_community.tools.file_management.write import (
WriteFileInput,
WriteFileTool,
)
from typing import TYPE_CHECKING, Any
__all__ = ["WriteFileInput", "WriteFileTool"]
from langchain._api import create_importer
if TYPE_CHECKING:
from langchain_community.tools import WriteFileTool
from langchain_community.tools.file_management.write import WriteFileInput
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional imports.
DEPRECATED_LOOKUP = {
"WriteFileInput": "langchain_community.tools.file_management.write",
"WriteFileTool": "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__ = [
"WriteFileInput",
"WriteFileTool",
]

@ -1,3 +1,23 @@
from langchain_community.tools.github.tool import GitHubAction
from typing import TYPE_CHECKING, Any
__all__ = ["GitHubAction"]
from langchain._api import create_importer
if TYPE_CHECKING:
from langchain_community.tools.github.tool import GitHubAction
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional imports.
DEPRECATED_LOOKUP = {"GitHubAction": "langchain_community.tools.github.tool"}
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
def __getattr__(name: str) -> Any:
"""Look up attributes dynamically."""
return _import_attribute(name)
__all__ = [
"GitHubAction",
]

@ -1,3 +1,23 @@
from langchain_community.tools.gitlab.tool import GitLabAction
from typing import TYPE_CHECKING, Any
__all__ = ["GitLabAction"]
from langchain._api import create_importer
if TYPE_CHECKING:
from langchain_community.tools.gitlab.tool import GitLabAction
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional imports.
DEPRECATED_LOOKUP = {"GitLabAction": "langchain_community.tools.gitlab.tool"}
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
def __getattr__(name: str) -> Any:
"""Look up attributes dynamically."""
return _import_attribute(name)
__all__ = [
"GitLabAction",
]

@ -1,10 +1,35 @@
"""Gmail tools."""
from typing import TYPE_CHECKING, Any
from langchain._api import create_importer
if TYPE_CHECKING:
from langchain_community.tools import (
GmailCreateDraft,
GmailGetMessage,
GmailGetThread,
GmailSearch,
GmailSendMessage,
)
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional imports.
DEPRECATED_LOOKUP = {
"GmailCreateDraft": "langchain_community.tools",
"GmailSendMessage": "langchain_community.tools",
"GmailSearch": "langchain_community.tools",
"GmailGetMessage": "langchain_community.tools",
"GmailGetThread": "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)
from langchain_community.tools.gmail.create_draft import GmailCreateDraft
from langchain_community.tools.gmail.get_message import GmailGetMessage
from langchain_community.tools.gmail.get_thread import GmailGetThread
from langchain_community.tools.gmail.search import GmailSearch
from langchain_community.tools.gmail.send_message import GmailSendMessage
__all__ = [
"GmailCreateDraft",

@ -1,3 +1,23 @@
from langchain_community.tools.gmail.base import GmailBaseTool
from typing import TYPE_CHECKING, Any
__all__ = ["GmailBaseTool"]
from langchain._api import create_importer
if TYPE_CHECKING:
from langchain_community.tools.gmail.base import GmailBaseTool
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional imports.
DEPRECATED_LOOKUP = {"GmailBaseTool": "langchain_community.tools.gmail.base"}
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
def __getattr__(name: str) -> Any:
"""Look up attributes dynamically."""
return _import_attribute(name)
__all__ = [
"GmailBaseTool",
]

@ -1,6 +1,28 @@
from langchain_community.tools.gmail.create_draft import (
CreateDraftSchema,
GmailCreateDraft,
)
from typing import TYPE_CHECKING, Any
__all__ = ["CreateDraftSchema", "GmailCreateDraft"]
from langchain._api import create_importer
if TYPE_CHECKING:
from langchain_community.tools import GmailCreateDraft
from langchain_community.tools.gmail.create_draft import CreateDraftSchema
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional imports.
DEPRECATED_LOOKUP = {
"CreateDraftSchema": "langchain_community.tools.gmail.create_draft",
"GmailCreateDraft": "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__ = [
"CreateDraftSchema",
"GmailCreateDraft",
]

@ -1,6 +1,28 @@
from langchain_community.tools.gmail.get_message import (
GmailGetMessage,
SearchArgsSchema,
)
from typing import TYPE_CHECKING, Any
__all__ = ["SearchArgsSchema", "GmailGetMessage"]
from langchain._api import create_importer
if TYPE_CHECKING:
from langchain_community.tools import GmailGetMessage
from langchain_community.tools.gmail.get_message import SearchArgsSchema
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional imports.
DEPRECATED_LOOKUP = {
"SearchArgsSchema": "langchain_community.tools.gmail.get_message",
"GmailGetMessage": "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__ = [
"SearchArgsSchema",
"GmailGetMessage",
]

@ -1,3 +1,28 @@
from langchain_community.tools.gmail.get_thread import GetThreadSchema, GmailGetThread
from typing import TYPE_CHECKING, Any
__all__ = ["GetThreadSchema", "GmailGetThread"]
from langchain._api import create_importer
if TYPE_CHECKING:
from langchain_community.tools import GmailGetThread
from langchain_community.tools.gmail.get_thread import GetThreadSchema
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional imports.
DEPRECATED_LOOKUP = {
"GetThreadSchema": "langchain_community.tools.gmail.get_thread",
"GmailGetThread": "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__ = [
"GetThreadSchema",
"GmailGetThread",
]

@ -1,7 +1,30 @@
from langchain_community.tools.gmail.search import (
GmailSearch,
Resource,
SearchArgsSchema,
)
from typing import TYPE_CHECKING, Any
__all__ = ["Resource", "SearchArgsSchema", "GmailSearch"]
from langchain._api import create_importer
if TYPE_CHECKING:
from langchain_community.tools import GmailSearch
from langchain_community.tools.gmail.search import Resource, SearchArgsSchema
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional imports.
DEPRECATED_LOOKUP = {
"Resource": "langchain_community.tools.gmail.search",
"SearchArgsSchema": "langchain_community.tools.gmail.search",
"GmailSearch": "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__ = [
"Resource",
"SearchArgsSchema",
"GmailSearch",
]

@ -1,6 +1,28 @@
from langchain_community.tools.gmail.send_message import (
GmailSendMessage,
SendMessageSchema,
)
from typing import TYPE_CHECKING, Any
__all__ = ["SendMessageSchema", "GmailSendMessage"]
from langchain._api import create_importer
if TYPE_CHECKING:
from langchain_community.tools import GmailSendMessage
from langchain_community.tools.gmail.send_message import SendMessageSchema
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional imports.
DEPRECATED_LOOKUP = {
"SendMessageSchema": "langchain_community.tools.gmail.send_message",
"GmailSendMessage": "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__ = [
"SendMessageSchema",
"GmailSendMessage",
]

@ -1,7 +1,23 @@
"""Golden API toolkit."""
from typing import TYPE_CHECKING, Any
from langchain._api import create_importer
if TYPE_CHECKING:
from langchain_community.tools.golden_query.tool import GoldenQueryRun
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional imports.
DEPRECATED_LOOKUP = {"GoldenQueryRun": "langchain_community.tools.golden_query.tool"}
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
def __getattr__(name: str) -> Any:
"""Look up attributes dynamically."""
return _import_attribute(name)
from langchain_community.tools.golden_query.tool import GoldenQueryRun
__all__ = [
"GoldenQueryRun",

@ -1,3 +1,23 @@
from langchain_community.tools.golden_query.tool import GoldenQueryRun
from typing import TYPE_CHECKING, Any
__all__ = ["GoldenQueryRun"]
from langchain._api import create_importer
if TYPE_CHECKING:
from langchain_community.tools.golden_query.tool import GoldenQueryRun
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional imports.
DEPRECATED_LOOKUP = {"GoldenQueryRun": "langchain_community.tools.golden_query.tool"}
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
def __getattr__(name: str) -> Any:
"""Look up attributes dynamically."""
return _import_attribute(name)
__all__ = [
"GoldenQueryRun",
]

@ -1,7 +1,24 @@
"""Google Cloud Tools."""
from typing import TYPE_CHECKING, Any
from langchain_community.tools.google_cloud.texttospeech import (
GoogleCloudTextToSpeechTool,
)
from langchain._api import create_importer
__all__ = ["GoogleCloudTextToSpeechTool"]
if TYPE_CHECKING:
from langchain_community.tools import GoogleCloudTextToSpeechTool
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional imports.
DEPRECATED_LOOKUP = {"GoogleCloudTextToSpeechTool": "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__ = [
"GoogleCloudTextToSpeechTool",
]

@ -1,6 +1,22 @@
from langchain_community.tools.google_cloud.texttospeech import (
GoogleCloudTextToSpeechTool,
)
from typing import TYPE_CHECKING, Any
from langchain._api import create_importer
if TYPE_CHECKING:
from langchain_community.tools import GoogleCloudTextToSpeechTool
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional imports.
DEPRECATED_LOOKUP = {"GoogleCloudTextToSpeechTool": "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__ = [
"GoogleCloudTextToSpeechTool",

@ -1,5 +1,26 @@
"""Google Finance API Toolkit."""
from typing import TYPE_CHECKING, Any
from langchain_community.tools.google_finance.tool import GoogleFinanceQueryRun
from langchain._api import create_importer
__all__ = ["GoogleFinanceQueryRun"]
if TYPE_CHECKING:
from langchain_community.tools.google_finance.tool import GoogleFinanceQueryRun
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional imports.
DEPRECATED_LOOKUP = {
"GoogleFinanceQueryRun": "langchain_community.tools.google_finance.tool"
}
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
def __getattr__(name: str) -> Any:
"""Look up attributes dynamically."""
return _import_attribute(name)
__all__ = [
"GoogleFinanceQueryRun",
]

@ -1,3 +1,25 @@
from langchain_community.tools.google_finance.tool import GoogleFinanceQueryRun
from typing import TYPE_CHECKING, Any
__all__ = ["GoogleFinanceQueryRun"]
from langchain._api import create_importer
if TYPE_CHECKING:
from langchain_community.tools.google_finance.tool import GoogleFinanceQueryRun
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional imports.
DEPRECATED_LOOKUP = {
"GoogleFinanceQueryRun": "langchain_community.tools.google_finance.tool"
}
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
def __getattr__(name: str) -> Any:
"""Look up attributes dynamically."""
return _import_attribute(name)
__all__ = [
"GoogleFinanceQueryRun",
]

@ -1,5 +1,24 @@
"""Google Jobs API Toolkit."""
from typing import TYPE_CHECKING, Any
from langchain_community.tools.google_jobs.tool import GoogleJobsQueryRun
from langchain._api import create_importer
__all__ = ["GoogleJobsQueryRun"]
if TYPE_CHECKING:
from langchain_community.tools.google_jobs.tool import GoogleJobsQueryRun
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional imports.
DEPRECATED_LOOKUP = {"GoogleJobsQueryRun": "langchain_community.tools.google_jobs.tool"}
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
def __getattr__(name: str) -> Any:
"""Look up attributes dynamically."""
return _import_attribute(name)
__all__ = [
"GoogleJobsQueryRun",
]

@ -1,3 +1,23 @@
from langchain_community.tools.google_jobs.tool import GoogleJobsQueryRun
from typing import TYPE_CHECKING, Any
__all__ = ["GoogleJobsQueryRun"]
from langchain._api import create_importer
if TYPE_CHECKING:
from langchain_community.tools.google_jobs.tool import GoogleJobsQueryRun
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional imports.
DEPRECATED_LOOKUP = {"GoogleJobsQueryRun": "langchain_community.tools.google_jobs.tool"}
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
def __getattr__(name: str) -> Any:
"""Look up attributes dynamically."""
return _import_attribute(name)
__all__ = [
"GoogleJobsQueryRun",
]

@ -1,5 +1,24 @@
"""Google Lens API Toolkit."""
from typing import TYPE_CHECKING, Any
from langchain_community.tools.google_lens.tool import GoogleLensQueryRun
from langchain._api import create_importer
__all__ = ["GoogleLensQueryRun"]
if TYPE_CHECKING:
from langchain_community.tools.google_lens.tool import GoogleLensQueryRun
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional imports.
DEPRECATED_LOOKUP = {"GoogleLensQueryRun": "langchain_community.tools.google_lens.tool"}
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
def __getattr__(name: str) -> Any:
"""Look up attributes dynamically."""
return _import_attribute(name)
__all__ = [
"GoogleLensQueryRun",
]

@ -1,3 +1,23 @@
from langchain_community.tools.google_lens.tool import GoogleLensQueryRun
from typing import TYPE_CHECKING, Any
__all__ = ["GoogleLensQueryRun"]
from langchain._api import create_importer
if TYPE_CHECKING:
from langchain_community.tools.google_lens.tool import GoogleLensQueryRun
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional imports.
DEPRECATED_LOOKUP = {"GoogleLensQueryRun": "langchain_community.tools.google_lens.tool"}
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
def __getattr__(name: str) -> Any:
"""Look up attributes dynamically."""
return _import_attribute(name)
__all__ = [
"GoogleLensQueryRun",
]

@ -1,5 +1,24 @@
"""Google Places API Toolkit."""
from typing import TYPE_CHECKING, Any
from langchain_community.tools.google_places.tool import GooglePlacesTool
from langchain._api import create_importer
__all__ = ["GooglePlacesTool"]
if TYPE_CHECKING:
from langchain_community.tools import GooglePlacesTool
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional imports.
DEPRECATED_LOOKUP = {"GooglePlacesTool": "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__ = [
"GooglePlacesTool",
]

@ -1,6 +1,28 @@
from langchain_community.tools.google_places.tool import (
GooglePlacesSchema,
GooglePlacesTool,
)
from typing import TYPE_CHECKING, Any
__all__ = ["GooglePlacesSchema", "GooglePlacesTool"]
from langchain._api import create_importer
if TYPE_CHECKING:
from langchain_community.tools import GooglePlacesTool
from langchain_community.tools.google_places.tool import GooglePlacesSchema
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional imports.
DEPRECATED_LOOKUP = {
"GooglePlacesSchema": "langchain_community.tools.google_places.tool",
"GooglePlacesTool": "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__ = [
"GooglePlacesSchema",
"GooglePlacesTool",
]

@ -1,5 +1,26 @@
"""Google Scholar API Toolkit."""
from typing import TYPE_CHECKING, Any
from langchain_community.tools.google_scholar.tool import GoogleScholarQueryRun
from langchain._api import create_importer
__all__ = ["GoogleScholarQueryRun"]
if TYPE_CHECKING:
from langchain_community.tools.google_scholar.tool import GoogleScholarQueryRun
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional imports.
DEPRECATED_LOOKUP = {
"GoogleScholarQueryRun": "langchain_community.tools.google_scholar.tool"
}
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
def __getattr__(name: str) -> Any:
"""Look up attributes dynamically."""
return _import_attribute(name)
__all__ = [
"GoogleScholarQueryRun",
]

@ -1,3 +1,25 @@
from langchain_community.tools.google_scholar.tool import GoogleScholarQueryRun
from typing import TYPE_CHECKING, Any
__all__ = ["GoogleScholarQueryRun"]
from langchain._api import create_importer
if TYPE_CHECKING:
from langchain_community.tools.google_scholar.tool import GoogleScholarQueryRun
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional imports.
DEPRECATED_LOOKUP = {
"GoogleScholarQueryRun": "langchain_community.tools.google_scholar.tool"
}
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
def __getattr__(name: str) -> Any:
"""Look up attributes dynamically."""
return _import_attribute(name)
__all__ = [
"GoogleScholarQueryRun",
]

@ -1,8 +1,28 @@
"""Google Search API Toolkit."""
from typing import TYPE_CHECKING, Any
from langchain_community.tools.google_search.tool import (
GoogleSearchResults,
GoogleSearchRun,
)
from langchain._api import create_importer
__all__ = ["GoogleSearchRun", "GoogleSearchResults"]
if TYPE_CHECKING:
from langchain_community.tools import GoogleSearchResults, GoogleSearchRun
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional imports.
DEPRECATED_LOOKUP = {
"GoogleSearchRun": "langchain_community.tools",
"GoogleSearchResults": "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__ = [
"GoogleSearchRun",
"GoogleSearchResults",
]

@ -1,6 +1,27 @@
from langchain_community.tools.google_search.tool import (
GoogleSearchResults,
GoogleSearchRun,
)
from typing import TYPE_CHECKING, Any
__all__ = ["GoogleSearchRun", "GoogleSearchResults"]
from langchain._api import create_importer
if TYPE_CHECKING:
from langchain_community.tools import GoogleSearchResults, GoogleSearchRun
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional imports.
DEPRECATED_LOOKUP = {
"GoogleSearchRun": "langchain_community.tools",
"GoogleSearchResults": "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__ = [
"GoogleSearchRun",
"GoogleSearchResults",
]

@ -1,9 +1,30 @@
from langchain_community.tools.google_serper.tool import (
GoogleSerperResults,
GoogleSerperRun,
)
from typing import TYPE_CHECKING, Any
from langchain._api import create_importer
if TYPE_CHECKING:
from langchain_community.tools import GoogleSerperResults, GoogleSerperRun
"""Google Serper API Toolkit."""
"""Tool for the Serer.dev Google Search API."""
__all__ = ["GoogleSerperRun", "GoogleSerperResults"]
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional imports.
DEPRECATED_LOOKUP = {
"GoogleSerperRun": "langchain_community.tools",
"GoogleSerperResults": "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__ = [
"GoogleSerperRun",
"GoogleSerperResults",
]

@ -1,6 +1,27 @@
from langchain_community.tools.google_serper.tool import (
GoogleSerperResults,
GoogleSerperRun,
)
from typing import TYPE_CHECKING, Any
__all__ = ["GoogleSerperRun", "GoogleSerperResults"]
from langchain._api import create_importer
if TYPE_CHECKING:
from langchain_community.tools import GoogleSerperResults, GoogleSerperRun
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional imports.
DEPRECATED_LOOKUP = {
"GoogleSerperRun": "langchain_community.tools",
"GoogleSerperResults": "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__ = [
"GoogleSerperRun",
"GoogleSerperResults",
]

@ -1,5 +1,26 @@
"""Google Trends API Toolkit."""
from typing import TYPE_CHECKING, Any
from langchain_community.tools.google_trends.tool import GoogleTrendsQueryRun
from langchain._api import create_importer
__all__ = ["GoogleTrendsQueryRun"]
if TYPE_CHECKING:
from langchain_community.tools.google_trends.tool import GoogleTrendsQueryRun
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional imports.
DEPRECATED_LOOKUP = {
"GoogleTrendsQueryRun": "langchain_community.tools.google_trends.tool"
}
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
def __getattr__(name: str) -> Any:
"""Look up attributes dynamically."""
return _import_attribute(name)
__all__ = [
"GoogleTrendsQueryRun",
]

@ -1,3 +1,25 @@
from langchain_community.tools.google_trends.tool import GoogleTrendsQueryRun
from typing import TYPE_CHECKING, Any
__all__ = ["GoogleTrendsQueryRun"]
from langchain._api import create_importer
if TYPE_CHECKING:
from langchain_community.tools.google_trends.tool import GoogleTrendsQueryRun
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional imports.
DEPRECATED_LOOKUP = {
"GoogleTrendsQueryRun": "langchain_community.tools.google_trends.tool"
}
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
def __getattr__(name: str) -> Any:
"""Look up attributes dynamically."""
return _import_attribute(name)
__all__ = [
"GoogleTrendsQueryRun",
]

@ -1,3 +1,23 @@
from langchain_community.tools.graphql.tool import BaseGraphQLTool
from typing import TYPE_CHECKING, Any
__all__ = ["BaseGraphQLTool"]
from langchain._api import create_importer
if TYPE_CHECKING:
from langchain_community.tools import BaseGraphQLTool
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional imports.
DEPRECATED_LOOKUP = {"BaseGraphQLTool": "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__ = [
"BaseGraphQLTool",
]

@ -1,5 +1,24 @@
"""Tool for asking for human input."""
from typing import TYPE_CHECKING, Any
from langchain_community.tools.human.tool import HumanInputRun
from langchain._api import create_importer
__all__ = ["HumanInputRun"]
if TYPE_CHECKING:
from langchain_community.tools import HumanInputRun
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional imports.
DEPRECATED_LOOKUP = {"HumanInputRun": "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__ = [
"HumanInputRun",
]

@ -1,3 +1,23 @@
from langchain_community.tools.human.tool import HumanInputRun
from typing import TYPE_CHECKING, Any
__all__ = ["HumanInputRun"]
from langchain._api import create_importer
if TYPE_CHECKING:
from langchain_community.tools import HumanInputRun
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional imports.
DEPRECATED_LOOKUP = {"HumanInputRun": "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__ = [
"HumanInputRun",
]

@ -1,3 +1,23 @@
from langchain_community.tools.ifttt import IFTTTWebhook
from typing import TYPE_CHECKING, Any
__all__ = ["IFTTTWebhook"]
from langchain._api import create_importer
if TYPE_CHECKING:
from langchain_community.tools import IFTTTWebhook
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional imports.
DEPRECATED_LOOKUP = {"IFTTTWebhook": "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__ = [
"IFTTTWebhook",
]

@ -1,3 +1,23 @@
from langchain_community.tools.interaction.tool import StdInInquireTool
from typing import TYPE_CHECKING, Any
__all__ = ["StdInInquireTool"]
from langchain._api import create_importer
if TYPE_CHECKING:
from langchain_community.tools import StdInInquireTool
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional imports.
DEPRECATED_LOOKUP = {"StdInInquireTool": "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__ = [
"StdInInquireTool",
]

@ -1,3 +1,23 @@
from langchain_community.tools.jira.tool import JiraAction
from typing import TYPE_CHECKING, Any
__all__ = ["JiraAction"]
from langchain._api import create_importer
if TYPE_CHECKING:
from langchain_community.tools import JiraAction
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional imports.
DEPRECATED_LOOKUP = {"JiraAction": "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__ = [
"JiraAction",
]

@ -1,7 +1,30 @@
from langchain_community.tools.json.tool import (
JsonGetValueTool,
JsonListKeysTool,
JsonSpec,
)
from typing import TYPE_CHECKING, Any
__all__ = ["JsonSpec", "JsonListKeysTool", "JsonGetValueTool"]
from langchain._api import create_importer
if TYPE_CHECKING:
from langchain_community.tools import JsonGetValueTool, JsonListKeysTool
from langchain_community.tools.json.tool import JsonSpec
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional imports.
DEPRECATED_LOOKUP = {
"JsonSpec": "langchain_community.tools.json.tool",
"JsonListKeysTool": "langchain_community.tools",
"JsonGetValueTool": "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__ = [
"JsonSpec",
"JsonListKeysTool",
"JsonGetValueTool",
]

@ -1,5 +1,24 @@
"""Unsupervised learning based memorization."""
from typing import TYPE_CHECKING, Any
from langchain_community.tools.memorize.tool import Memorize
from langchain._api import create_importer
__all__ = ["Memorize"]
if TYPE_CHECKING:
from langchain_community.tools.memorize.tool import Memorize
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional imports.
DEPRECATED_LOOKUP = {"Memorize": "langchain_community.tools.memorize.tool"}
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
def __getattr__(name: str) -> Any:
"""Look up attributes dynamically."""
return _import_attribute(name)
__all__ = [
"Memorize",
]

@ -1,3 +1,27 @@
from langchain_community.tools.memorize.tool import Memorize, TrainableLLM
from typing import TYPE_CHECKING, Any
__all__ = ["TrainableLLM", "Memorize"]
from langchain._api import create_importer
if TYPE_CHECKING:
from langchain_community.tools.memorize.tool import Memorize, TrainableLLM
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional imports.
DEPRECATED_LOOKUP = {
"TrainableLLM": "langchain_community.tools.memorize.tool",
"Memorize": "langchain_community.tools.memorize.tool",
}
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
def __getattr__(name: str) -> Any:
"""Look up attributes dynamically."""
return _import_attribute(name)
__all__ = [
"TrainableLLM",
"Memorize",
]

@ -1,3 +1,23 @@
from langchain_community.tools.merriam_webster.tool import MerriamWebsterQueryRun
from typing import TYPE_CHECKING, Any
__all__ = ["MerriamWebsterQueryRun"]
from langchain._api import create_importer
if TYPE_CHECKING:
from langchain_community.tools import MerriamWebsterQueryRun
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional imports.
DEPRECATED_LOOKUP = {"MerriamWebsterQueryRun": "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__ = [
"MerriamWebsterQueryRun",
]

@ -1,5 +1,24 @@
"""Metaphor Search API toolkit."""
from typing import TYPE_CHECKING, Any
from langchain_community.tools.metaphor_search.tool import MetaphorSearchResults
from langchain._api import create_importer
__all__ = ["MetaphorSearchResults"]
if TYPE_CHECKING:
from langchain_community.tools import MetaphorSearchResults
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional imports.
DEPRECATED_LOOKUP = {"MetaphorSearchResults": "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__ = [
"MetaphorSearchResults",
]

@ -1,3 +1,23 @@
from langchain_community.tools.metaphor_search.tool import MetaphorSearchResults
from typing import TYPE_CHECKING, Any
__all__ = ["MetaphorSearchResults"]
from langchain._api import create_importer
if TYPE_CHECKING:
from langchain_community.tools import MetaphorSearchResults
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional imports.
DEPRECATED_LOOKUP = {"MetaphorSearchResults": "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__ = [
"MetaphorSearchResults",
]

@ -1,6 +1,32 @@
"""MutliOn Client API tools."""
from langchain_community.tools.multion.close_session import MultionCloseSession
from langchain_community.tools.multion.create_session import MultionCreateSession
from langchain_community.tools.multion.update_session import MultionUpdateSession
from typing import TYPE_CHECKING, Any
__all__ = ["MultionCreateSession", "MultionUpdateSession", "MultionCloseSession"]
from langchain._api import create_importer
if TYPE_CHECKING:
from langchain_community.tools.multion.close_session import MultionCloseSession
from langchain_community.tools.multion.create_session import MultionCreateSession
from langchain_community.tools.multion.update_session import MultionUpdateSession
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional imports.
DEPRECATED_LOOKUP = {
"MultionCreateSession": "langchain_community.tools.multion.create_session",
"MultionUpdateSession": "langchain_community.tools.multion.update_session",
"MultionCloseSession": "langchain_community.tools.multion.close_session",
}
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
def __getattr__(name: str) -> Any:
"""Look up attributes dynamically."""
return _import_attribute(name)
__all__ = [
"MultionCreateSession",
"MultionUpdateSession",
"MultionCloseSession",
]

@ -1,6 +1,30 @@
from langchain_community.tools.multion.close_session import (
CloseSessionSchema,
MultionCloseSession,
)
from typing import TYPE_CHECKING, Any
__all__ = ["CloseSessionSchema", "MultionCloseSession"]
from langchain._api import create_importer
if TYPE_CHECKING:
from langchain_community.tools.multion.close_session import (
CloseSessionSchema,
MultionCloseSession,
)
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional imports.
DEPRECATED_LOOKUP = {
"CloseSessionSchema": "langchain_community.tools.multion.close_session",
"MultionCloseSession": "langchain_community.tools.multion.close_session",
}
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
def __getattr__(name: str) -> Any:
"""Look up attributes dynamically."""
return _import_attribute(name)
__all__ = [
"CloseSessionSchema",
"MultionCloseSession",
]

@ -1,6 +1,30 @@
from langchain_community.tools.multion.create_session import (
CreateSessionSchema,
MultionCreateSession,
)
from typing import TYPE_CHECKING, Any
__all__ = ["CreateSessionSchema", "MultionCreateSession"]
from langchain._api import create_importer
if TYPE_CHECKING:
from langchain_community.tools.multion.create_session import (
CreateSessionSchema,
MultionCreateSession,
)
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional imports.
DEPRECATED_LOOKUP = {
"CreateSessionSchema": "langchain_community.tools.multion.create_session",
"MultionCreateSession": "langchain_community.tools.multion.create_session",
}
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
def __getattr__(name: str) -> Any:
"""Look up attributes dynamically."""
return _import_attribute(name)
__all__ = [
"CreateSessionSchema",
"MultionCreateSession",
]

@ -1,6 +1,30 @@
from langchain_community.tools.multion.update_session import (
MultionUpdateSession,
UpdateSessionSchema,
)
from typing import TYPE_CHECKING, Any
__all__ = ["UpdateSessionSchema", "MultionUpdateSession"]
from langchain._api import create_importer
if TYPE_CHECKING:
from langchain_community.tools.multion.update_session import (
MultionUpdateSession,
UpdateSessionSchema,
)
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional imports.
DEPRECATED_LOOKUP = {
"UpdateSessionSchema": "langchain_community.tools.multion.update_session",
"MultionUpdateSession": "langchain_community.tools.multion.update_session",
}
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
def __getattr__(name: str) -> Any:
"""Look up attributes dynamically."""
return _import_attribute(name)
__all__ = [
"UpdateSessionSchema",
"MultionUpdateSession",
]

@ -1,3 +1,23 @@
from langchain_community.tools.nasa.tool import NasaAction
from typing import TYPE_CHECKING, Any
__all__ = ["NasaAction"]
from langchain._api import create_importer
if TYPE_CHECKING:
from langchain_community.tools import NasaAction
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional imports.
DEPRECATED_LOOKUP = {"NasaAction": "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__ = [
"NasaAction",
]

@ -1,3 +1,23 @@
from langchain_community.tools.nuclia.tool import NucliaUnderstandingAPI
from typing import TYPE_CHECKING, Any
__all__ = ["NucliaUnderstandingAPI"]
from langchain._api import create_importer
if TYPE_CHECKING:
from langchain_community.tools.nuclia.tool import NucliaUnderstandingAPI
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional imports.
DEPRECATED_LOOKUP = {"NucliaUnderstandingAPI": "langchain_community.tools.nuclia.tool"}
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
def __getattr__(name: str) -> Any:
"""Look up attributes dynamically."""
return _import_attribute(name)
__all__ = [
"NucliaUnderstandingAPI",
]

@ -1,3 +1,27 @@
from langchain_community.tools.nuclia.tool import NUASchema, NucliaUnderstandingAPI
from typing import TYPE_CHECKING, Any
__all__ = ["NUASchema", "NucliaUnderstandingAPI"]
from langchain._api import create_importer
if TYPE_CHECKING:
from langchain_community.tools.nuclia.tool import NUASchema, NucliaUnderstandingAPI
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional imports.
DEPRECATED_LOOKUP = {
"NUASchema": "langchain_community.tools.nuclia.tool",
"NucliaUnderstandingAPI": "langchain_community.tools.nuclia.tool",
}
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
def __getattr__(name: str) -> Any:
"""Look up attributes dynamically."""
return _import_attribute(name)
__all__ = [
"NUASchema",
"NucliaUnderstandingAPI",
]

@ -1,12 +1,35 @@
"""O365 tools."""
from typing import TYPE_CHECKING, Any
from langchain._api import create_importer
if TYPE_CHECKING:
from langchain_community.tools import (
O365CreateDraftMessage,
O365SearchEmails,
O365SearchEvents,
O365SendEvent,
O365SendMessage,
)
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional imports.
DEPRECATED_LOOKUP = {
"O365SearchEmails": "langchain_community.tools",
"O365SearchEvents": "langchain_community.tools",
"O365CreateDraftMessage": "langchain_community.tools",
"O365SendMessage": "langchain_community.tools",
"O365SendEvent": "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)
from langchain_community.tools.office365.create_draft_message import (
O365CreateDraftMessage,
)
from langchain_community.tools.office365.events_search import O365SearchEvents
from langchain_community.tools.office365.messages_search import O365SearchEmails
from langchain_community.tools.office365.send_event import O365SendEvent
from langchain_community.tools.office365.send_message import O365SendMessage
__all__ = [
"O365SearchEmails",

@ -1,3 +1,23 @@
from langchain_community.tools.office365.base import O365BaseTool
from typing import TYPE_CHECKING, Any
__all__ = ["O365BaseTool"]
from langchain._api import create_importer
if TYPE_CHECKING:
from langchain_community.tools.office365.base import O365BaseTool
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional imports.
DEPRECATED_LOOKUP = {"O365BaseTool": "langchain_community.tools.office365.base"}
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
def __getattr__(name: str) -> Any:
"""Look up attributes dynamically."""
return _import_attribute(name)
__all__ = [
"O365BaseTool",
]

@ -1,6 +1,32 @@
from langchain_community.tools.office365.create_draft_message import (
CreateDraftMessageSchema,
O365CreateDraftMessage,
)
from typing import TYPE_CHECKING, Any
__all__ = ["CreateDraftMessageSchema", "O365CreateDraftMessage"]
from langchain._api import create_importer
if TYPE_CHECKING:
from langchain_community.tools import O365CreateDraftMessage
from langchain_community.tools.office365.create_draft_message import (
CreateDraftMessageSchema,
)
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional imports.
DEPRECATED_LOOKUP = {
"CreateDraftMessageSchema": (
"langchain_community.tools.office365.create_draft_message"
),
"O365CreateDraftMessage": "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__ = [
"CreateDraftMessageSchema",
"O365CreateDraftMessage",
]

@ -1,6 +1,28 @@
from langchain_community.tools.office365.events_search import (
O365SearchEvents,
SearchEventsInput,
)
from typing import TYPE_CHECKING, Any
__all__ = ["SearchEventsInput", "O365SearchEvents"]
from langchain._api import create_importer
if TYPE_CHECKING:
from langchain_community.tools import O365SearchEvents
from langchain_community.tools.office365.events_search import SearchEventsInput
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional imports.
DEPRECATED_LOOKUP = {
"SearchEventsInput": "langchain_community.tools.office365.events_search",
"O365SearchEvents": "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__ = [
"SearchEventsInput",
"O365SearchEvents",
]

@ -1,6 +1,28 @@
from langchain_community.tools.office365.messages_search import (
O365SearchEmails,
SearchEmailsInput,
)
from typing import TYPE_CHECKING, Any
__all__ = ["SearchEmailsInput", "O365SearchEmails"]
from langchain._api import create_importer
if TYPE_CHECKING:
from langchain_community.tools import O365SearchEmails
from langchain_community.tools.office365.messages_search import SearchEmailsInput
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional imports.
DEPRECATED_LOOKUP = {
"SearchEmailsInput": "langchain_community.tools.office365.messages_search",
"O365SearchEmails": "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__ = [
"SearchEmailsInput",
"O365SearchEmails",
]

@ -1,6 +1,28 @@
from langchain_community.tools.office365.send_event import (
O365SendEvent,
SendEventSchema,
)
from typing import TYPE_CHECKING, Any
__all__ = ["SendEventSchema", "O365SendEvent"]
from langchain._api import create_importer
if TYPE_CHECKING:
from langchain_community.tools import O365SendEvent
from langchain_community.tools.office365.send_event import SendEventSchema
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional imports.
DEPRECATED_LOOKUP = {
"SendEventSchema": "langchain_community.tools.office365.send_event",
"O365SendEvent": "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__ = [
"SendEventSchema",
"O365SendEvent",
]

@ -1,6 +1,28 @@
from langchain_community.tools.office365.send_message import (
O365SendMessage,
SendMessageSchema,
)
from typing import TYPE_CHECKING, Any
__all__ = ["SendMessageSchema", "O365SendMessage"]
from langchain._api import create_importer
if TYPE_CHECKING:
from langchain_community.tools import O365SendMessage
from langchain_community.tools.office365.send_message import SendMessageSchema
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional imports.
DEPRECATED_LOOKUP = {
"SendMessageSchema": "langchain_community.tools.office365.send_message",
"O365SendMessage": "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__ = [
"SendMessageSchema",
"O365SendMessage",
]

@ -1,15 +1,44 @@
from langchain_community.tools.openapi.utils.api_models import (
INVALID_LOCATION_TEMPL,
PRIMITIVE_TYPES,
SCHEMA_TYPE,
SUPPORTED_LOCATIONS,
APIOperation,
APIProperty,
APIPropertyBase,
APIPropertyLocation,
APIRequestBody,
APIRequestBodyProperty,
)
from typing import TYPE_CHECKING, Any
from langchain._api import create_importer
if TYPE_CHECKING:
from langchain_community.tools import APIOperation
from langchain_community.tools.openapi.utils.api_models import (
INVALID_LOCATION_TEMPL,
PRIMITIVE_TYPES,
SCHEMA_TYPE,
SUPPORTED_LOCATIONS,
APIProperty,
APIPropertyBase,
APIPropertyLocation,
APIRequestBody,
APIRequestBodyProperty,
)
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional imports.
DEPRECATED_LOOKUP = {
"APIPropertyLocation": "langchain_community.tools.openapi.utils.api_models",
"APIPropertyBase": "langchain_community.tools.openapi.utils.api_models",
"APIProperty": "langchain_community.tools.openapi.utils.api_models",
"APIRequestBodyProperty": "langchain_community.tools.openapi.utils.api_models",
"APIRequestBody": "langchain_community.tools.openapi.utils.api_models",
"APIOperation": "langchain_community.tools",
"INVALID_LOCATION_TEMPL": "langchain_community.tools.openapi.utils.api_models",
"SCHEMA_TYPE": "langchain_community.tools.openapi.utils.api_models",
"PRIMITIVE_TYPES": "langchain_community.tools.openapi.utils.api_models",
"SUPPORTED_LOCATIONS": "langchain_community.tools.openapi.utils.api_models",
}
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
def __getattr__(name: str) -> Any:
"""Look up attributes dynamically."""
return _import_attribute(name)
__all__ = [
"PRIMITIVE_TYPES",

@ -1,4 +1,29 @@
"""Utility functions for parsing an OpenAPI spec. Kept for backwards compat."""
from langchain_community.utilities.openapi import HTTPVerb, OpenAPISpec
from typing import TYPE_CHECKING, Any
__all__ = ["HTTPVerb", "OpenAPISpec"]
from langchain._api import create_importer
if TYPE_CHECKING:
from langchain_community.tools import OpenAPISpec
from langchain_community.utilities.openapi import HTTPVerb
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional imports.
DEPRECATED_LOOKUP = {
"HTTPVerb": "langchain_community.utilities.openapi",
"OpenAPISpec": "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__ = [
"HTTPVerb",
"OpenAPISpec",
]

@ -1,7 +1,23 @@
"""OpenWeatherMap API toolkit."""
from typing import TYPE_CHECKING, Any
from langchain._api import create_importer
if TYPE_CHECKING:
from langchain_community.tools import OpenWeatherMapQueryRun
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional imports.
DEPRECATED_LOOKUP = {"OpenWeatherMapQueryRun": "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)
from langchain_community.tools.openweathermap.tool import OpenWeatherMapQueryRun
__all__ = [
"OpenWeatherMapQueryRun",

@ -1,3 +1,23 @@
from langchain_community.tools.openweathermap.tool import OpenWeatherMapQueryRun
from typing import TYPE_CHECKING, Any
__all__ = ["OpenWeatherMapQueryRun"]
from langchain._api import create_importer
if TYPE_CHECKING:
from langchain_community.tools import OpenWeatherMapQueryRun
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional imports.
DEPRECATED_LOOKUP = {"OpenWeatherMapQueryRun": "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__ = [
"OpenWeatherMapQueryRun",
]

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save