Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
__init__.py30 linesDownload Raw Back to google_search
1"""Google Search API Toolkit."""2 3from typing import TYPE_CHECKING, Any4 5from langchain_classic._api import create_importer6 7if TYPE_CHECKING:8    from langchain_community.tools import GoogleSearchResults, GoogleSearchRun9 10# Create a way to dynamically look up deprecated imports.11# Used to consolidate logic for raising deprecation warnings and12# handling optional imports.13DEPRECATED_LOOKUP = {14    "GoogleSearchRun": "langchain_community.tools",15    "GoogleSearchResults": "langchain_community.tools",16}17 18_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)19 20 21def __getattr__(name: str) -> Any:22    """Look up attributes dynamically."""23    return _import_attribute(name)24 25 26__all__ = [27    "GoogleSearchResults",28    "GoogleSearchRun",29]30 
codekingpro/portable-devtools · Team Ai