Home / Function/ on_chain_end() — langchain Function Reference

on_chain_end() — langchain Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  d49bad0e_757b_b92c_a5da_4c3d949372f3["on_chain_end()"]
  dcf2a9b2_8ab4_fbe0_5f57_ef548417d10e["StdOutCallbackHandler"]
  d49bad0e_757b_b92c_a5da_4c3d949372f3 -->|defined in| dcf2a9b2_8ab4_fbe0_5f57_ef548417d10e
  style d49bad0e_757b_b92c_a5da_4c3d949372f3 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/core/langchain_core/callbacks/stdout.py lines 47–54

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

        Args:
            outputs: The outputs of the chain.
            **kwargs: Additional keyword arguments.
        """
        print("\n\033[1m> Finished chain.\033[0m")  # noqa: T201

Domain

Subdomains

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/stdout.py.
Where is on_chain_end() defined?
on_chain_end() is defined in libs/core/langchain_core/callbacks/stdout.py at line 47.

Analyze Your Own Codebase

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

Try Supermodel Free