on_llm_error() — langchain Function Reference
Architecture documentation for the on_llm_error() function in callbacks.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 6077bdeb_e189_1c57_085a_c8ac1902b136["on_llm_error()"] 9659be4f_91d1_3b62_bcfb_38c048777165["FakeCallbackHandler"] 6077bdeb_e189_1c57_085a_c8ac1902b136 -->|defined in| 9659be4f_91d1_3b62_bcfb_38c048777165 1ba0db38_e96d_bbae_dd69_266f9cfd6059["on_llm_error()"] 1ba0db38_e96d_bbae_dd69_266f9cfd6059 -->|calls| 6077bdeb_e189_1c57_085a_c8ac1902b136 542d0f0c_f21d_784b_4e3a_49864572cfc3["on_llm_error_common()"] 6077bdeb_e189_1c57_085a_c8ac1902b136 -->|calls| 542d0f0c_f21d_784b_4e3a_49864572cfc3 1ba0db38_e96d_bbae_dd69_266f9cfd6059["on_llm_error()"] 6077bdeb_e189_1c57_085a_c8ac1902b136 -->|calls| 1ba0db38_e96d_bbae_dd69_266f9cfd6059 style 6077bdeb_e189_1c57_085a_c8ac1902b136 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/core/tests/unit_tests/fake/callbacks.py lines 167–172
def on_llm_error(
self,
*args: Any,
**kwargs: Any,
) -> Any:
self.on_llm_error_common(*args, **kwargs)
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does on_llm_error() do?
on_llm_error() is a function in the langchain codebase, defined in libs/core/tests/unit_tests/fake/callbacks.py.
Where is on_llm_error() defined?
on_llm_error() is defined in libs/core/tests/unit_tests/fake/callbacks.py at line 167.
What does on_llm_error() call?
on_llm_error() calls 2 function(s): on_llm_error, on_llm_error_common.
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