Home / Function/ on_llm_start() — langchain Function Reference

on_llm_start() — langchain Function Reference

Architecture documentation for the on_llm_start() function in callbacks.py from the langchain codebase.

Function python LangChainCore Runnables calls 2 called by 1

Entity Profile

Dependency Diagram

graph TD
  a38f4245_cf8e_5bf0_ab50_237d3540075e["on_llm_start()"]
  b1da79c3_cb84_0799_b179_c8776facb43e["FakeAsyncCallbackHandler"]
  a38f4245_cf8e_5bf0_ab50_237d3540075e -->|defined in| b1da79c3_cb84_0799_b179_c8776facb43e
  798a88bd_9749_d8ed_5da2_f73ebd7471b9["on_llm_start()"]
  798a88bd_9749_d8ed_5da2_f73ebd7471b9 -->|calls| a38f4245_cf8e_5bf0_ab50_237d3540075e
  2a54643c_71e5_18b6_682f_2f4e3f264e08["on_llm_start_common()"]
  a38f4245_cf8e_5bf0_ab50_237d3540075e -->|calls| 2a54643c_71e5_18b6_682f_2f4e3f264e08
  798a88bd_9749_d8ed_5da2_f73ebd7471b9["on_llm_start()"]
  a38f4245_cf8e_5bf0_ab50_237d3540075e -->|calls| 798a88bd_9749_d8ed_5da2_f73ebd7471b9
  style a38f4245_cf8e_5bf0_ab50_237d3540075e fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/partners/openai/tests/unit_tests/fake/callbacks.py lines 232–233

    async def on_llm_start(self, *args: Any, **kwargs: Any) -> None:
        self.on_llm_start_common()

Domain

Subdomains

Called By

Frequently Asked Questions

What does on_llm_start() do?
on_llm_start() is a function in the langchain codebase, defined in libs/partners/openai/tests/unit_tests/fake/callbacks.py.
Where is on_llm_start() defined?
on_llm_start() is defined in libs/partners/openai/tests/unit_tests/fake/callbacks.py at line 232.
What does on_llm_start() call?
on_llm_start() calls 2 function(s): on_llm_start, on_llm_start_common.
What calls on_llm_start()?
on_llm_start() is called by 1 function(s): on_llm_start.

Analyze Your Own Codebase

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

Try Supermodel Free