Home / Function/ _raise_deprecation() — langchain Function Reference

_raise_deprecation() — langchain Function Reference

Architecture documentation for the _raise_deprecation() function in enum.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  b5b6c2a2_f183_1e7e_ccc5_0215a3281034["_raise_deprecation()"]
  6fc8a8d3_a1ed_0021_4545_b3b83ed1da09["EnumOutputParser"]
  b5b6c2a2_f183_1e7e_ccc5_0215a3281034 -->|defined in| 6fc8a8d3_a1ed_0021_4545_b3b83ed1da09
  b5b6c2a2_f183_1e7e_ccc5_0215a3281034["_raise_deprecation()"]
  b5b6c2a2_f183_1e7e_ccc5_0215a3281034 -->|calls| b5b6c2a2_f183_1e7e_ccc5_0215a3281034
  b5b6c2a2_f183_1e7e_ccc5_0215a3281034["_raise_deprecation()"]
  b5b6c2a2_f183_1e7e_ccc5_0215a3281034 -->|calls| b5b6c2a2_f183_1e7e_ccc5_0215a3281034
  style b5b6c2a2_f183_1e7e_ccc5_0215a3281034 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/langchain/langchain_classic/output_parsers/enum.py lines 16–21

    def _raise_deprecation(cls, values: dict) -> dict:
        enum = values["enum"]
        if not all(isinstance(e.value, str) for e in enum):
            msg = "Enum values must be strings"
            raise ValueError(msg)
        return values

Domain

Subdomains

Frequently Asked Questions

What does _raise_deprecation() do?
_raise_deprecation() is a function in the langchain codebase, defined in libs/langchain/langchain_classic/output_parsers/enum.py.
Where is _raise_deprecation() defined?
_raise_deprecation() is defined in libs/langchain/langchain_classic/output_parsers/enum.py at line 16.
What does _raise_deprecation() call?
_raise_deprecation() calls 1 function(s): _raise_deprecation.
What calls _raise_deprecation()?
_raise_deprecation() is called by 1 function(s): _raise_deprecation.

Analyze Your Own Codebase

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

Try Supermodel Free