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

Entity Profile

Dependency Diagram

graph TD
  98aead3f_6fa9_8a0a_04b7_afb70a49a665["on_llm_new_token_common()"]
  9467e1fa_6130_05ef_040c_a465e50b1e84["BaseFakeCallbackHandlerMixin"]
  98aead3f_6fa9_8a0a_04b7_afb70a49a665 -->|defined in| 9467e1fa_6130_05ef_040c_a465e50b1e84
  f68f70ea_2644_5946_9925_8dd6b41dad4b["on_llm_new_token()"]
  f68f70ea_2644_5946_9925_8dd6b41dad4b -->|calls| 98aead3f_6fa9_8a0a_04b7_afb70a49a665
  style 98aead3f_6fa9_8a0a_04b7_afb70a49a665 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/partners/anthropic/tests/unit_tests/_utils.py lines 58–59

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

Subdomains

Called By

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/partners/anthropic/tests/unit_tests/_utils.py.
Where is on_llm_new_token_common() defined?
on_llm_new_token_common() is defined in libs/partners/anthropic/tests/unit_tests/_utils.py at line 58.
What calls on_llm_new_token_common()?
on_llm_new_token_common() is called by 1 function(s): on_llm_new_token.

Analyze Your Own Codebase

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

Try Supermodel Free