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.

Entity Profile

Dependency Diagram

graph TD
  fb87b897_578b_8e91_e489_cb75c5d5e820["on_llm_start()"]
  9659be4f_91d1_3b62_bcfb_38c048777165["FakeCallbackHandler"]
  fb87b897_578b_8e91_e489_cb75c5d5e820 -->|defined in| 9659be4f_91d1_3b62_bcfb_38c048777165
  f36b1c76_03fe_ebdf_32ac_c88b386440f3["on_llm_start()"]
  f36b1c76_03fe_ebdf_32ac_c88b386440f3 -->|calls| fb87b897_578b_8e91_e489_cb75c5d5e820
  a15ae4bf_75ba_4b35_143c_805602404e62["on_llm_start_common()"]
  fb87b897_578b_8e91_e489_cb75c5d5e820 -->|calls| a15ae4bf_75ba_4b35_143c_805602404e62
  f36b1c76_03fe_ebdf_32ac_c88b386440f3["on_llm_start()"]
  fb87b897_578b_8e91_e489_cb75c5d5e820 -->|calls| f36b1c76_03fe_ebdf_32ac_c88b386440f3
  style fb87b897_578b_8e91_e489_cb75c5d5e820 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/core/tests/unit_tests/fake/callbacks.py lines 143–148

    def on_llm_start(
        self,
        *args: Any,
        **kwargs: Any,
    ) -> Any:
        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/core/tests/unit_tests/fake/callbacks.py.
Where is on_llm_start() defined?
on_llm_start() is defined in libs/core/tests/unit_tests/fake/callbacks.py at line 143.
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