Home / Function/ _on_run_create() — langchain Function Reference

_on_run_create() — langchain Function Reference

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

Function python Observability Tracers calls 1 called by 1

Entity Profile

Dependency Diagram

graph TD
  5675113f_efde_1b0e_b0d7_5923081cc436["_on_run_create()"]
  a10e05b7_8a18_0e17_1c03_e7ac470fe677["AsyncRootListenersTracer"]
  5675113f_efde_1b0e_b0d7_5923081cc436 -->|defined in| a10e05b7_8a18_0e17_1c03_e7ac470fe677
  6ba5dd85_d522_bdcf_17b7_eaaa793df704["_on_run_create()"]
  6ba5dd85_d522_bdcf_17b7_eaaa793df704 -->|calls| 5675113f_efde_1b0e_b0d7_5923081cc436
  6ba5dd85_d522_bdcf_17b7_eaaa793df704["_on_run_create()"]
  5675113f_efde_1b0e_b0d7_5923081cc436 -->|calls| 6ba5dd85_d522_bdcf_17b7_eaaa793df704
  style 5675113f_efde_1b0e_b0d7_5923081cc436 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/core/langchain_core/tracers/root_listeners.py lines 113–120

    async def _on_run_create(self, run: Run) -> None:
        if self.root_id is not None:
            return

        self.root_id = run.id

        if self._arg_on_start is not None:
            await acall_func_with_variable_args(self._arg_on_start, run, self.config)

Domain

Subdomains

Called By

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free