Home / Function/ raise_warning() — langchain Function Reference

raise_warning() — langchain Function Reference

Architecture documentation for the raise_warning() function in llms.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  a155775f_1bc7_54a1_89ba_f14e195409d7["raise_warning()"]
  c95a497f_938f_2be9_842e_087a0766cf00["AnthropicLLM"]
  a155775f_1bc7_54a1_89ba_f14e195409d7 -->|defined in| c95a497f_938f_2be9_842e_087a0766cf00
  style a155775f_1bc7_54a1_89ba_f14e195409d7 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/partners/anthropic/langchain_anthropic/llms.py lines 155–163

    def raise_warning(cls, values: dict) -> Any:
        """Raise warning that this class is deprecated."""
        warnings.warn(
            "This Anthropic LLM is deprecated. "
            "Please use `from langchain_anthropic import ChatAnthropic` "
            "instead",
            stacklevel=2,
        )
        return values

Domain

Subdomains

Frequently Asked Questions

What does raise_warning() do?
raise_warning() is a function in the langchain codebase, defined in libs/partners/anthropic/langchain_anthropic/llms.py.
Where is raise_warning() defined?
raise_warning() is defined in libs/partners/anthropic/langchain_anthropic/llms.py at line 155.

Analyze Your Own Codebase

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

Try Supermodel Free