Home / Function/ _on_llm_start() — langchain Function Reference

_on_llm_start() — langchain Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  47b18753_9600_0c69_068c_07843c56f875["_on_llm_start()"]
  70348e44_de0f_ccb4_c06a_8453289ed93e["_TracerCore"]
  47b18753_9600_0c69_068c_07843c56f875 -->|defined in| 70348e44_de0f_ccb4_c06a_8453289ed93e
  style 47b18753_9600_0c69_068c_07843c56f875 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/core/langchain_core/tracers/core.py lines 574–581

    def _on_llm_start(self, run: Run) -> Coroutine[Any, Any, None] | None:
        """Process the LLM Run upon start.

        Args:
            run: The LLM run.
        """
        _ = run
        return None

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/core.py.
Where is _on_llm_start() defined?
_on_llm_start() is defined in libs/core/langchain_core/tracers/core.py at line 574.

Analyze Your Own Codebase

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

Try Supermodel Free