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 357a2418_0dcc_ea85_b4bd_b108511e4276["on_llm_new_token_common()"] f0bf147f_92f7_4127_bab5_d25b15399ce6["BaseFakeCallbackHandlerMixin"] 357a2418_0dcc_ea85_b4bd_b108511e4276 -->|defined in| f0bf147f_92f7_4127_bab5_d25b15399ce6 19892f3f_0f27_c511_ded9_86c854608795["on_llm_new_token()"] 19892f3f_0f27_c511_ded9_86c854608795 -->|calls| 357a2418_0dcc_ea85_b4bd_b108511e4276 86b723f4_6524_0514_6f7d_34817131510d["on_llm_new_token()"] 86b723f4_6524_0514_6f7d_34817131510d -->|calls| 357a2418_0dcc_ea85_b4bd_b108511e4276 style 357a2418_0dcc_ea85_b4bd_b108511e4276 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/partners/openai/tests/unit_tests/fake/callbacks.py lines 63–64
def on_llm_new_token_common(self) -> None:
self.llm_streams += 1
Domain
Subdomains
Called By
Source
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/openai/tests/unit_tests/fake/callbacks.py.
Where is on_llm_new_token_common() defined?
on_llm_new_token_common() is defined in libs/partners/openai/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