Home / File/ __init__.py — langchain Source File

__init__.py — langchain Source File

Architecture documentation for __init__.py, a python file in the langchain codebase. 2 imports, 0 dependents.

File python 2 imports

Entity Profile

Dependency Diagram

graph LR
  a053ef46_1728_657a_89fd_6458437b2467["__init__.py"]
  b19a8b7e_fbee_95b1_65b8_509a1ed3cad7["langchain_core._api"]
  a053ef46_1728_657a_89fd_6458437b2467 --> b19a8b7e_fbee_95b1_65b8_509a1ed3cad7
  274b63f7_b51a_3a58_2a4e_0e6910b17c84["langchain_core.version"]
  a053ef46_1728_657a_89fd_6458437b2467 --> 274b63f7_b51a_3a58_2a4e_0e6910b17c84
  style a053ef46_1728_657a_89fd_6458437b2467 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

"""`langchain-core` defines the base abstractions for the LangChain ecosystem.

The interfaces for core components like chat models, LLMs, vector stores, retrievers,
and more are defined here. The universal invocation protocol (Runnables) along with
a syntax for combining components are also defined here.

**No third-party integrations are defined here.** The dependencies are kept purposefully
very lightweight.
"""

from langchain_core._api import (
    surface_langchain_beta_warnings,
    surface_langchain_deprecation_warnings,
)
from langchain_core.version import VERSION

__version__ = VERSION

surface_langchain_deprecation_warnings()
surface_langchain_beta_warnings()

Dependencies

  • langchain_core._api
  • langchain_core.version

Frequently Asked Questions

What does __init__.py do?
__init__.py is a source file in the langchain codebase, written in python.
What does __init__.py depend on?
__init__.py imports 2 module(s): langchain_core._api, langchain_core.version.
Where is __init__.py in the architecture?
__init__.py is located at libs/core/langchain_core/__init__.py (directory: libs/core/langchain_core).

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free