Home / Function/ on_llm_error() — langchain Function Reference

on_llm_error() — langchain Function Reference

Architecture documentation for the on_llm_error() function in base.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  342eca2a_66f8_f29e_4dc5_ef1fcc7388a8["on_llm_error()"]
  8d0067ae_0de0_c143_63e7_e97f7fd9f614["LLMManagerMixin"]
  342eca2a_66f8_f29e_4dc5_ef1fcc7388a8 -->|defined in| 8d0067ae_0de0_c143_63e7_e97f7fd9f614
  f6564d33_2b36_810d_404d_dd91e99870d8["on_llm_error()"]
  f6564d33_2b36_810d_404d_dd91e99870d8 -->|calls| 342eca2a_66f8_f29e_4dc5_ef1fcc7388a8
  f6564d33_2b36_810d_404d_dd91e99870d8["on_llm_error()"]
  342eca2a_66f8_f29e_4dc5_ef1fcc7388a8 -->|calls| f6564d33_2b36_810d_404d_dd91e99870d8
  style 342eca2a_66f8_f29e_4dc5_ef1fcc7388a8 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/core/langchain_core/callbacks/base.py lines 108–125

    def on_llm_error(
        self,
        error: BaseException,
        *,
        run_id: UUID,
        parent_run_id: UUID | None = None,
        tags: list[str] | None = None,
        **kwargs: Any,
    ) -> Any:
        """Run when LLM errors.

        Args:
            error: The error that occurred.
            run_id: The ID of the current run.
            parent_run_id: The ID of the parent run.
            tags: The tags.
            **kwargs: Additional keyword arguments.
        """

Domain

Subdomains

Called By

Frequently Asked Questions

What does on_llm_error() do?
on_llm_error() is a function in the langchain codebase, defined in libs/core/langchain_core/callbacks/base.py.
Where is on_llm_error() defined?
on_llm_error() is defined in libs/core/langchain_core/callbacks/base.py at line 108.
What does on_llm_error() call?
on_llm_error() calls 1 function(s): on_llm_error.
What calls on_llm_error()?
on_llm_error() is called by 1 function(s): on_llm_error.

Analyze Your Own Codebase

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

Try Supermodel Free