_build_deprecation_message() — langchain Function Reference
Architecture documentation for the _build_deprecation_message() function in deprecation.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 1088cd8a_00a0_1e2b_6d7b_1c14f84b3ab1["_build_deprecation_message()"] 94320bb6_6e56_d7f5_79eb_9674de780d72["deprecation.py"] 1088cd8a_00a0_1e2b_6d7b_1c14f84b3ab1 -->|defined in| 94320bb6_6e56_d7f5_79eb_9674de780d72 40d7e3e2_e923_83d0_042d_1c39ac220fba["deprecated()"] 40d7e3e2_e923_83d0_042d_1c39ac220fba -->|calls| 1088cd8a_00a0_1e2b_6d7b_1c14f84b3ab1 style 1088cd8a_00a0_1e2b_6d7b_1c14f84b3ab1 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/core/langchain_core/_api/deprecation.py lines 30–48
def _build_deprecation_message(
*,
alternative: str = "",
alternative_import: str = "",
) -> str:
"""Build a simple deprecation message for `__deprecated__` attribute.
Args:
alternative: An alternative API name.
alternative_import: A fully qualified import path for the alternative.
Returns:
A deprecation message string for IDE/type checker display.
"""
if alternative_import:
return f"Use {alternative_import} instead."
if alternative:
return f"Use {alternative} instead."
return "Deprecated."
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does _build_deprecation_message() do?
_build_deprecation_message() is a function in the langchain codebase, defined in libs/core/langchain_core/_api/deprecation.py.
Where is _build_deprecation_message() defined?
_build_deprecation_message() is defined in libs/core/langchain_core/_api/deprecation.py at line 30.
What calls _build_deprecation_message()?
_build_deprecation_message() is called by 1 function(s): deprecated.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free