Home / Function/ on_llm_end() — langchain Function Reference

on_llm_end() — langchain Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  8240ab97_e3dc_b041_ef41_537c68c4be48["on_llm_end()"]
  8d0067ae_0de0_c143_63e7_e97f7fd9f614["LLMManagerMixin"]
  8240ab97_e3dc_b041_ef41_537c68c4be48 -->|defined in| 8d0067ae_0de0_c143_63e7_e97f7fd9f614
  6f28079e_127e_5fd6_95da_a73eeaea9992["on_llm_end()"]
  6f28079e_127e_5fd6_95da_a73eeaea9992 -->|calls| 8240ab97_e3dc_b041_ef41_537c68c4be48
  6f28079e_127e_5fd6_95da_a73eeaea9992["on_llm_end()"]
  8240ab97_e3dc_b041_ef41_537c68c4be48 -->|calls| 6f28079e_127e_5fd6_95da_a73eeaea9992
  style 8240ab97_e3dc_b041_ef41_537c68c4be48 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/core/langchain_core/callbacks/base.py lines 89–106

    def on_llm_end(
        self,
        response: LLMResult,
        *,
        run_id: UUID,
        parent_run_id: UUID | None = None,
        tags: list[str] | None = None,
        **kwargs: Any,
    ) -> Any:
        """Run when LLM ends running.

        Args:
            response: The response which was generated.
            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

Calls

Called By

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free