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
  6ba5dd85_d522_bdcf_17b7_eaaa793df704["_on_run_create()"]
  89d8d69c_785e_e71a_498a_04879f19121c["RootListenersTracer"]
  6ba5dd85_d522_bdcf_17b7_eaaa793df704 -->|defined in| 89d8d69c_785e_e71a_498a_04879f19121c
  5675113f_efde_1b0e_b0d7_5923081cc436["_on_run_create()"]
  5675113f_efde_1b0e_b0d7_5923081cc436 -->|calls| 6ba5dd85_d522_bdcf_17b7_eaaa793df704
  5675113f_efde_1b0e_b0d7_5923081cc436["_on_run_create()"]
  6ba5dd85_d522_bdcf_17b7_eaaa793df704 -->|calls| 5675113f_efde_1b0e_b0d7_5923081cc436
  style 6ba5dd85_d522_bdcf_17b7_eaaa793df704 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/core/langchain_core/tracers/root_listeners.py lines 58–65

    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:
            call_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 58.
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