Home / Function/ on_llm_end() — langchain Function Reference

on_llm_end() — langchain Function Reference

Architecture documentation for the on_llm_end() function in test_base.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  1af1a498_c875_c738_b8bd_9cae9db34f7d["on_llm_end()"]
  cb03c8f1_9cc4_2af2_ecce_d19fc9675c3e["_FakeCallback"]
  1af1a498_c875_c738_b8bd_9cae9db34f7d -->|defined in| cb03c8f1_9cc4_2af2_ecce_d19fc9675c3e
  39377d85_e451_e328_3858_72ffb8612fd4["test_chat_openai_streaming_generation_info()"]
  39377d85_e451_e328_3858_72ffb8612fd4 -->|calls| 1af1a498_c875_c738_b8bd_9cae9db34f7d
  style 1af1a498_c875_c738_b8bd_9cae9db34f7d fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/partners/openai/tests/integration_tests/chat_models/test_base.py lines 183–185

        def on_llm_end(self, *args: Any, **kwargs: Any) -> Any:
            # Save the generation
            self.saved_things["generation"] = args[0]

Domain

Subdomains

Frequently Asked Questions

What does on_llm_end() do?
on_llm_end() is a function in the langchain codebase, defined in libs/partners/openai/tests/integration_tests/chat_models/test_base.py.
Where is on_llm_end() defined?
on_llm_end() is defined in libs/partners/openai/tests/integration_tests/chat_models/test_base.py at line 183.
What calls on_llm_end()?
on_llm_end() is called by 1 function(s): test_chat_openai_streaming_generation_info.

Analyze Your Own Codebase

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

Try Supermodel Free