raise_callback_manager_deprecation() — langchain Function Reference
Architecture documentation for the raise_callback_manager_deprecation() function in base.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 9267fc2d_e405_bf33_7744_58dce173db99["raise_callback_manager_deprecation()"] f3cef70e_11b0_61c9_7ec0_7308f4b45056["Chain"] 9267fc2d_e405_bf33_7744_58dce173db99 -->|defined in| f3cef70e_11b0_61c9_7ec0_7308f4b45056 style 9267fc2d_e405_bf33_7744_58dce173db99 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/langchain/langchain_classic/chains/base.py lines 247–263
def raise_callback_manager_deprecation(cls, values: dict) -> Any:
"""Raise deprecation warning if callback_manager is used."""
if values.get("callback_manager") is not None:
if values.get("callbacks") is not None:
msg = (
"Cannot specify both callback_manager and callbacks. "
"callback_manager is deprecated, callbacks is the preferred "
"parameter to pass in."
)
raise ValueError(msg)
warnings.warn(
"callback_manager is deprecated. Please use callbacks instead.",
DeprecationWarning,
stacklevel=4,
)
values["callbacks"] = values.pop("callback_manager", None)
return values
Domain
Subdomains
Source
Frequently Asked Questions
What does raise_callback_manager_deprecation() do?
raise_callback_manager_deprecation() is a function in the langchain codebase, defined in libs/langchain/langchain_classic/chains/base.py.
Where is raise_callback_manager_deprecation() defined?
raise_callback_manager_deprecation() is defined in libs/langchain/langchain_classic/chains/base.py at line 247.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free