Home / Function/ on_llm_error_common() — langchain Function Reference

on_llm_error_common() — langchain Function Reference

Architecture documentation for the on_llm_error_common() function in callbacks.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  542d0f0c_f21d_784b_4e3a_49864572cfc3["on_llm_error_common()"]
  bd0f558e_4f69_e5aa_d113_623bbeb51c3d["BaseFakeCallbackHandlerMixin"]
  542d0f0c_f21d_784b_4e3a_49864572cfc3 -->|defined in| bd0f558e_4f69_e5aa_d113_623bbeb51c3d
  6077bdeb_e189_1c57_085a_c8ac1902b136["on_llm_error()"]
  6077bdeb_e189_1c57_085a_c8ac1902b136 -->|calls| 542d0f0c_f21d_784b_4e3a_49864572cfc3
  1ba0db38_e96d_bbae_dd69_266f9cfd6059["on_llm_error()"]
  1ba0db38_e96d_bbae_dd69_266f9cfd6059 -->|calls| 542d0f0c_f21d_784b_4e3a_49864572cfc3
  style 542d0f0c_f21d_784b_4e3a_49864572cfc3 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/core/tests/unit_tests/fake/callbacks.py lines 59–61

    def on_llm_error_common(self, *args: Any, **kwargs: Any) -> None:
        self.errors += 1
        self.errors_args.append({"args": args, "kwargs": kwargs})

Domain

Subdomains

Frequently Asked Questions

What does on_llm_error_common() do?
on_llm_error_common() is a function in the langchain codebase, defined in libs/core/tests/unit_tests/fake/callbacks.py.
Where is on_llm_error_common() defined?
on_llm_error_common() is defined in libs/core/tests/unit_tests/fake/callbacks.py at line 59.
What calls on_llm_error_common()?
on_llm_error_common() is called by 2 function(s): on_llm_error, on_llm_error.

Analyze Your Own Codebase

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

Try Supermodel Free