on_chain_end() — langchain Function Reference
Architecture documentation for the on_chain_end() function in test_runnable.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD e2a2f3d5_061c_bced_7cee_afca636dadd5["on_chain_end()"] 9fa237df_c083_de03_6138_a1fcf10006ea["MyHandler"] e2a2f3d5_061c_bced_7cee_afca636dadd5 -->|defined in| 9fa237df_c083_de03_6138_a1fcf10006ea a9077a2a_464d_d853_4eb9_ae6048e61e55["test_closing_iterator_doesnt_raise_error()"] a9077a2a_464d_d853_4eb9_ae6048e61e55 -->|calls| e2a2f3d5_061c_bced_7cee_afca636dadd5 style e2a2f3d5_061c_bced_7cee_afca636dadd5 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/core/tests/unit_tests/runnables/test_runnable.py lines 5654–5663
def on_chain_end(
self,
outputs: dict[str, Any],
*,
run_id: UUID,
parent_run_id: UUID | None = None,
**kwargs: Any,
) -> None:
nonlocal on_chain_end_triggered
on_chain_end_triggered = True
Domain
Subdomains
Source
Frequently Asked Questions
What does on_chain_end() do?
on_chain_end() is a function in the langchain codebase, defined in libs/core/tests/unit_tests/runnables/test_runnable.py.
Where is on_chain_end() defined?
on_chain_end() is defined in libs/core/tests/unit_tests/runnables/test_runnable.py at line 5654.
What calls on_chain_end()?
on_chain_end() is called by 1 function(s): test_closing_iterator_doesnt_raise_error.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free