Home / Function/ _on_run_update() — langchain Function Reference

_on_run_update() — langchain Function Reference

Architecture documentation for the _on_run_update() function in root_listeners.py from the langchain codebase.

Function python Observability Tracers calls 1 called by 1

Entity Profile

Dependency Diagram

graph TD
  e4e585e7_0325_d2c6_deb7_0dd44cdf3df6["_on_run_update()"]
  a10e05b7_8a18_0e17_1c03_e7ac470fe677["AsyncRootListenersTracer"]
  e4e585e7_0325_d2c6_deb7_0dd44cdf3df6 -->|defined in| a10e05b7_8a18_0e17_1c03_e7ac470fe677
  4a7513c5_6cf9_561d_93c4_5c59b36c9b9e["_on_run_update()"]
  4a7513c5_6cf9_561d_93c4_5c59b36c9b9e -->|calls| e4e585e7_0325_d2c6_deb7_0dd44cdf3df6
  4a7513c5_6cf9_561d_93c4_5c59b36c9b9e["_on_run_update()"]
  e4e585e7_0325_d2c6_deb7_0dd44cdf3df6 -->|calls| 4a7513c5_6cf9_561d_93c4_5c59b36c9b9e
  style e4e585e7_0325_d2c6_deb7_0dd44cdf3df6 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/core/langchain_core/tracers/root_listeners.py lines 122–130

    async def _on_run_update(self, run: Run) -> None:
        if run.id != self.root_id:
            return

        if run.error is None:
            if self._arg_on_end is not None:
                await acall_func_with_variable_args(self._arg_on_end, run, self.config)
        elif self._arg_on_error is not None:
            await acall_func_with_variable_args(self._arg_on_error, run, self.config)

Domain

Subdomains

Called By

Frequently Asked Questions

What does _on_run_update() do?
_on_run_update() is a function in the langchain codebase, defined in libs/core/langchain_core/tracers/root_listeners.py.
Where is _on_run_update() defined?
_on_run_update() is defined in libs/core/langchain_core/tracers/root_listeners.py at line 122.
What does _on_run_update() call?
_on_run_update() calls 1 function(s): _on_run_update.
What calls _on_run_update()?
_on_run_update() is called by 1 function(s): _on_run_update.

Analyze Your Own Codebase

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

Try Supermodel Free