_raise_deprecation() — langchain Function Reference
Architecture documentation for the _raise_deprecation() function in base.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 7ae7d589_e20c_0c98_1b01_12802ff422f8["_raise_deprecation()"] 94675137_e239_b0ed_4295_d86f72dadd0c["LLMSummarizationCheckerChain"] 7ae7d589_e20c_0c98_1b01_12802ff422f8 -->|defined in| 94675137_e239_b0ed_4295_d86f72dadd0c ce6eb2d1_3558_fbd2_b7a1_915b6d227e95["_load_sequential_chain()"] 7ae7d589_e20c_0c98_1b01_12802ff422f8 -->|calls| ce6eb2d1_3558_fbd2_b7a1_915b6d227e95 style 7ae7d589_e20c_0c98_1b01_12802ff422f8 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/langchain/langchain_classic/chains/llm_summarization_checker/base.py lines 118–135
def _raise_deprecation(cls, values: dict) -> Any:
if "llm" in values:
warnings.warn(
"Directly instantiating an LLMSummarizationCheckerChain with an llm is "
"deprecated. Please instantiate with"
" sequential_chain argument or using the from_llm class method.",
stacklevel=5,
)
if "sequential_chain" not in values and values["llm"] is not None:
values["sequential_chain"] = _load_sequential_chain(
values["llm"],
values.get("create_assertions_prompt", CREATE_ASSERTIONS_PROMPT),
values.get("check_assertions_prompt", CHECK_ASSERTIONS_PROMPT),
values.get("revised_summary_prompt", REVISED_SUMMARY_PROMPT),
values.get("are_all_true_prompt", ARE_ALL_TRUE_PROMPT),
verbose=values.get("verbose", False),
)
return values
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does _raise_deprecation() do?
_raise_deprecation() is a function in the langchain codebase, defined in libs/langchain/langchain_classic/chains/llm_summarization_checker/base.py.
Where is _raise_deprecation() defined?
_raise_deprecation() is defined in libs/langchain/langchain_classic/chains/llm_summarization_checker/base.py at line 118.
What does _raise_deprecation() call?
_raise_deprecation() calls 1 function(s): _load_sequential_chain.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free