Home / Function/ on_llm_new_token_common() — langchain Function Reference

on_llm_new_token_common() — langchain Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  b70eca03_4a48_68ed_a020_e0bf6fb97114["on_llm_new_token_common()"]
  bd0f558e_4f69_e5aa_d113_623bbeb51c3d["BaseFakeCallbackHandlerMixin"]
  b70eca03_4a48_68ed_a020_e0bf6fb97114 -->|defined in| bd0f558e_4f69_e5aa_d113_623bbeb51c3d
  395f554f_a818_3355_e71c_0153b6c0249f["on_llm_new_token()"]
  395f554f_a818_3355_e71c_0153b6c0249f -->|calls| b70eca03_4a48_68ed_a020_e0bf6fb97114
  4fb04cb9_7198_d459_1e6d_b74e876457e3["on_llm_new_token()"]
  4fb04cb9_7198_d459_1e6d_b74e876457e3 -->|calls| b70eca03_4a48_68ed_a020_e0bf6fb97114
  style b70eca03_4a48_68ed_a020_e0bf6fb97114 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/core/tests/unit_tests/fake/callbacks.py lines 63–64

    def on_llm_new_token_common(self) -> None:
        self.llm_streams += 1

Domain

Subdomains

Frequently Asked Questions

What does on_llm_new_token_common() do?
on_llm_new_token_common() is a function in the langchain codebase, defined in libs/core/tests/unit_tests/fake/callbacks.py.
Where is on_llm_new_token_common() defined?
on_llm_new_token_common() is defined in libs/core/tests/unit_tests/fake/callbacks.py at line 63.
What calls on_llm_new_token_common()?
on_llm_new_token_common() is called by 2 function(s): on_llm_new_token, on_llm_new_token.

Analyze Your Own Codebase

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

Try Supermodel Free