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 1eb8d02b_71be_ccb5_c8d5_2a65a2f36cdc["on_llm_error()"] b9664d7e_7900_dd8a_b9b3_2ee136c7b790["FakeCallbackHandler"] 1eb8d02b_71be_ccb5_c8d5_2a65a2f36cdc -->|defined in| b9664d7e_7900_dd8a_b9b3_2ee136c7b790 c9b82cbd_1069_96f5_9a6a_3fc1f5564b75["on_llm_error()"] c9b82cbd_1069_96f5_9a6a_3fc1f5564b75 -->|calls| 1eb8d02b_71be_ccb5_c8d5_2a65a2f36cdc f84cb6cf_579f_95d8_e7f7_2c8a37721d02["on_llm_error_common()"] 1eb8d02b_71be_ccb5_c8d5_2a65a2f36cdc -->|calls| f84cb6cf_579f_95d8_e7f7_2c8a37721d02 c9b82cbd_1069_96f5_9a6a_3fc1f5564b75["on_llm_error()"] 1eb8d02b_71be_ccb5_c8d5_2a65a2f36cdc -->|calls| c9b82cbd_1069_96f5_9a6a_3fc1f5564b75 style 1eb8d02b_71be_ccb5_c8d5_2a65a2f36cdc fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/partners/openai/tests/unit_tests/fake/callbacks.py lines 151–152
def on_llm_error(self, *args: Any, **kwargs: Any) -> Any:
self.on_llm_error_common(*args, **kwargs)
Domain
Subdomains
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/partners/openai/tests/unit_tests/fake/callbacks.py.
Where is on_llm_error() defined?
on_llm_error() is defined in libs/partners/openai/tests/unit_tests/fake/callbacks.py at line 151.
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