Home / File/ deprecation.py — langchain Source File

deprecation.py — langchain Source File

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

File python 1 imports

Entity Profile

Dependency Diagram

graph LR
  ee33c85d_f4e6_eacc_8665_ec770089aff5["deprecation.py"]
  b869b9c1_fb7a_fbc5_c529_98b32cb76f64["langchain_core._api.deprecation"]
  ee33c85d_f4e6_eacc_8665_ec770089aff5 --> b869b9c1_fb7a_fbc5_c529_98b32cb76f64
  style ee33c85d_f4e6_eacc_8665_ec770089aff5 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

from langchain_core._api.deprecation import (
    LangChainDeprecationWarning,
    LangChainPendingDeprecationWarning,
    deprecated,
    suppress_langchain_deprecation_warning,
    surface_langchain_deprecation_warnings,
    warn_deprecated,
)

# TODO: this is old, fix
AGENT_DEPRECATION_WARNING = (
    "LangChain agents will continue to be supported, but it is recommended for new "
    "use cases to be built with LangGraph. LangGraph offers a more flexible and "
    "full-featured framework for building agents, including support for "
    "tool-calling, persistence of state, and human-in-the-loop workflows. For "
    "details, refer to the "
    "[LangGraph documentation](https://langchain-ai.github.io/langgraph/)"
    " as well as guides for "
    "[Migrating from AgentExecutor](https://python.langchain.com/docs/how_to/migrate_agent/)"
    " and LangGraph's "
    "[Pre-built ReAct agent](https://langchain-ai.github.io/langgraph/how-tos/create-react-agent/)."
)


__all__ = [
    "AGENT_DEPRECATION_WARNING",
    "LangChainDeprecationWarning",
    "LangChainPendingDeprecationWarning",
    "deprecated",
    "suppress_langchain_deprecation_warning",
    "surface_langchain_deprecation_warnings",
    "warn_deprecated",
]

Dependencies

  • langchain_core._api.deprecation

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free