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 fake_callback_handler.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  48d16357_01fc_cec5_a48f_4af80af05ab5["on_llm_new_token_common()"]
  ea671d84_7d08_f3b7_3eb4_b59396ea8e29["BaseFakeCallbackHandlerMixin"]
  48d16357_01fc_cec5_a48f_4af80af05ab5 -->|defined in| ea671d84_7d08_f3b7_3eb4_b59396ea8e29
  cc83360f_4559_7a61_bb7a_323669afddd0["on_llm_new_token()"]
  cc83360f_4559_7a61_bb7a_323669afddd0 -->|calls| 48d16357_01fc_cec5_a48f_4af80af05ab5
  66f8fe92_7bd2_c28f_7664_8ca5fdb3f7c8["on_llm_new_token()"]
  66f8fe92_7bd2_c28f_7664_8ca5fdb3f7c8 -->|calls| 48d16357_01fc_cec5_a48f_4af80af05ab5
  style 48d16357_01fc_cec5_a48f_4af80af05ab5 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/langchain/tests/unit_tests/callbacks/fake_callback_handler.py lines 60–61

    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/langchain/tests/unit_tests/callbacks/fake_callback_handler.py.
Where is on_llm_new_token_common() defined?
on_llm_new_token_common() is defined in libs/langchain/tests/unit_tests/callbacks/fake_callback_handler.py at line 60.
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