_validate_deprecation_params() — langchain Function Reference
Architecture documentation for the _validate_deprecation_params() function in deprecation.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 6c37de70_243b_b637_0066_3b3c7d974280["_validate_deprecation_params()"] 94320bb6_6e56_d7f5_79eb_9674de780d72["deprecation.py"] 6c37de70_243b_b637_0066_3b3c7d974280 -->|defined in| 94320bb6_6e56_d7f5_79eb_9674de780d72 40d7e3e2_e923_83d0_042d_1c39ac220fba["deprecated()"] 40d7e3e2_e923_83d0_042d_1c39ac220fba -->|calls| 6c37de70_243b_b637_0066_3b3c7d974280 style 6c37de70_243b_b637_0066_3b3c7d974280 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/core/langchain_core/_api/deprecation.py lines 66–86
def _validate_deprecation_params(
removal: str,
alternative: str,
alternative_import: str,
*,
pending: bool,
) -> None:
"""Validate the deprecation parameters."""
if pending and removal:
msg = "A pending deprecation cannot have a scheduled removal"
raise ValueError(msg)
if alternative and alternative_import:
msg = "Cannot specify both alternative and alternative_import"
raise ValueError(msg)
if alternative_import and "." not in alternative_import:
msg = (
"alternative_import must be a fully qualified module path. Got "
f" {alternative_import}"
)
raise ValueError(msg)
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does _validate_deprecation_params() do?
_validate_deprecation_params() is a function in the langchain codebase, defined in libs/core/langchain_core/_api/deprecation.py.
Where is _validate_deprecation_params() defined?
_validate_deprecation_params() is defined in libs/core/langchain_core/_api/deprecation.py at line 66.
What calls _validate_deprecation_params()?
_validate_deprecation_params() 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