tavily_search_api.py — langchain Source File
Architecture documentation for tavily_search_api.py, a python file in the langchain codebase. 4 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR d52398cd_d936_5a98_ef82_da33b15a4e76["tavily_search_api.py"] 8e2034b7_ceb8_963f_29fc_2ea6b50ef9b3["typing"] d52398cd_d936_5a98_ef82_da33b15a4e76 --> 8e2034b7_ceb8_963f_29fc_2ea6b50ef9b3 439a4142_6fa6_fe9a_2cba_7c9fb0cdceb7["langchain_classic._api"] d52398cd_d936_5a98_ef82_da33b15a4e76 --> 439a4142_6fa6_fe9a_2cba_7c9fb0cdceb7 6ab586c3_2712_40e5_0e15_f250f859fdb8["langchain_community.retrievers"] d52398cd_d936_5a98_ef82_da33b15a4e76 --> 6ab586c3_2712_40e5_0e15_f250f859fdb8 b18b7a8e_ec44_7f48_b157_580546b97818["langchain_community.retrievers.tavily_search_api"] d52398cd_d936_5a98_ef82_da33b15a4e76 --> b18b7a8e_ec44_7f48_b157_580546b97818 style d52398cd_d936_5a98_ef82_da33b15a4e76 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.retrievers import TavilySearchAPIRetriever
from langchain_community.retrievers.tavily_search_api import SearchDepth
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional imports.
DEPRECATED_LOOKUP = {
"SearchDepth": "langchain_community.retrievers.tavily_search_api",
"TavilySearchAPIRetriever": "langchain_community.retrievers",
}
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
def __getattr__(name: str) -> Any:
"""Look up attributes dynamically."""
return _import_attribute(name)
__all__ = [
"SearchDepth",
"TavilySearchAPIRetriever",
]
Domain
Subdomains
Functions
Dependencies
- langchain_classic._api
- langchain_community.retrievers
- langchain_community.retrievers.tavily_search_api
- typing
Source
Frequently Asked Questions
What does tavily_search_api.py do?
tavily_search_api.py is a source file in the langchain codebase, written in python. It belongs to the CoreAbstractions domain, Serialization subdomain.
What functions are defined in tavily_search_api.py?
tavily_search_api.py defines 2 function(s): __getattr__, langchain_community.
What does tavily_search_api.py depend on?
tavily_search_api.py imports 4 module(s): langchain_classic._api, langchain_community.retrievers, langchain_community.retrievers.tavily_search_api, typing.
Where is tavily_search_api.py in the architecture?
tavily_search_api.py is located at libs/langchain/langchain_classic/retrievers/tavily_search_api.py (domain: CoreAbstractions, subdomain: Serialization, directory: libs/langchain/langchain_classic/retrievers).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free