Home / Function/ on_chain_end() — langchain Function Reference

on_chain_end() — langchain Function Reference

Architecture documentation for the on_chain_end() function in file.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  17a93548_4682_35ae_257b_0ee3ff7cc79c["on_chain_end()"]
  52737fd4_dd58_4289_8b70_0131f09b23a5["FileCallbackHandler"]
  17a93548_4682_35ae_257b_0ee3ff7cc79c -->|defined in| 52737fd4_dd58_4289_8b70_0131f09b23a5
  efeb47b6_76c6_8f45_76b9_d26fbc90c538["_write()"]
  17a93548_4682_35ae_257b_0ee3ff7cc79c -->|calls| efeb47b6_76c6_8f45_76b9_d26fbc90c538
  style 17a93548_4682_35ae_257b_0ee3ff7cc79c fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/core/langchain_core/callbacks/file.py lines 183–191

    def on_chain_end(self, outputs: dict[str, Any], **kwargs: Any) -> None:
        """Print that we finished a chain.

        Args:
            outputs: The outputs of the chain.
            **kwargs: Additional keyword arguments.

        """
        self._write("\n> Finished chain.", end="\n")

Domain

Subdomains

Calls

Frequently Asked Questions

What does on_chain_end() do?
on_chain_end() is a function in the langchain codebase, defined in libs/core/langchain_core/callbacks/file.py.
Where is on_chain_end() defined?
on_chain_end() is defined in libs/core/langchain_core/callbacks/file.py at line 183.
What does on_chain_end() call?
on_chain_end() calls 1 function(s): _write.

Analyze Your Own Codebase

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

Try Supermodel Free