Home / Function/ _on_llm_start() — langchain Function Reference

_on_llm_start() — langchain Function Reference

Architecture documentation for the _on_llm_start() function in base.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  b4438399_97b7_d6fc_517e_dee981c4ae5e["_on_llm_start()"]
  b3ab8001_c14c_4191_ca53_2dbabc99917f["AsyncBaseTracer"]
  b4438399_97b7_d6fc_517e_dee981c4ae5e -->|defined in| b3ab8001_c14c_4191_ca53_2dbabc99917f
  d89ecf66_57c7_5671_97a2_4cb2416c215f["on_llm_start()"]
  d89ecf66_57c7_5671_97a2_4cb2416c215f -->|calls| b4438399_97b7_d6fc_517e_dee981c4ae5e
  250dea62_af5d_b691_60f6_419e79310ae9["on_llm_start()"]
  250dea62_af5d_b691_60f6_419e79310ae9 -->|calls| b4438399_97b7_d6fc_517e_dee981c4ae5e
  style b4438399_97b7_d6fc_517e_dee981c4ae5e fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/core/langchain_core/tracers/base.py lines 873–874

    async def _on_llm_start(self, run: Run) -> None:
        """Process the LLM Run upon start."""

Domain

Subdomains

Frequently Asked Questions

What does _on_llm_start() do?
_on_llm_start() is a function in the langchain codebase, defined in libs/core/langchain_core/tracers/base.py.
Where is _on_llm_start() defined?
_on_llm_start() is defined in libs/core/langchain_core/tracers/base.py at line 873.
What calls _on_llm_start()?
_on_llm_start() is called by 2 function(s): on_llm_start, on_llm_start.

Analyze Your Own Codebase

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

Try Supermodel Free