Home / Function/ on_llm_end() — langchain Function Reference

on_llm_end() — langchain Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  a914fbf0_f0cd_d943_6c83_4fa1caf9fe4a["on_llm_end()"]
  8f7245e3_8bd3_bce9_4868_73ea9b0cf467["ProgressBarCallback"]
  a914fbf0_f0cd_d943_6c83_4fa1caf9fe4a -->|defined in| 8f7245e3_8bd3_bce9_4868_73ea9b0cf467
  d3fbccba_a17d_4737_e36f_b0c86b86e89e["increment()"]
  a914fbf0_f0cd_d943_6c83_4fa1caf9fe4a -->|calls| d3fbccba_a17d_4737_e36f_b0c86b86e89e
  style a914fbf0_f0cd_d943_6c83_4fa1caf9fe4a fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/langchain/langchain_classic/smith/evaluation/progress.py lines 112–121

    def on_llm_end(
        self,
        response: LLMResult,
        *,
        run_id: UUID,
        parent_run_id: UUID | None = None,
        **kwargs: Any,
    ) -> Any:
        if parent_run_id is None:
            self.increment()

Domain

Subdomains

Calls

Frequently Asked Questions

What does on_llm_end() do?
on_llm_end() is a function in the langchain codebase, defined in libs/langchain/langchain_classic/smith/evaluation/progress.py.
Where is on_llm_end() defined?
on_llm_end() is defined in libs/langchain/langchain_classic/smith/evaluation/progress.py at line 112.
What does on_llm_end() call?
on_llm_end() calls 1 function(s): increment.

Analyze Your Own Codebase

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

Try Supermodel Free