on_chain_end() — langchain Function Reference
Architecture documentation for the on_chain_end() function in test_async_callback_manager.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 000bca7f_11b5_0c40_88ed_3a18292895b8["on_chain_end()"] c2677f9e_671b_f79c_68a2_698cec0b8129["ContextTestHandler"] 000bca7f_11b5_0c40_88ed_3a18292895b8 -->|defined in| c2677f9e_671b_f79c_68a2_698cec0b8129 afa066a7_187e_97a7_9fe8_398637386dee["test_shielded_callback_context_preservation()"] afa066a7_187e_97a7_9fe8_398637386dee -->|calls| 000bca7f_11b5_0c40_88ed_3a18292895b8 style 000bca7f_11b5_0c40_88ed_3a18292895b8 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/core/tests/unit_tests/callbacks/test_async_callback_manager.py lines 184–187
async def on_chain_end(self, outputs: Any, **kwargs: Any) -> None:
"""This method is decorated with @shielded in the run manager."""
# This should preserve the context variable value
self.context_values.append(context_var.get("not_found"))
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/callbacks/test_async_callback_manager.py.
Where is on_chain_end() defined?
on_chain_end() is defined in libs/core/tests/unit_tests/callbacks/test_async_callback_manager.py at line 184.
What calls on_chain_end()?
on_chain_end() is called by 1 function(s): test_shielded_callback_context_preservation.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free