Home / Function/ on_text() — langchain Function Reference

on_text() — langchain Function Reference

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

Function python LangChainCore Runnables calls 2 called by 1

Entity Profile

Dependency Diagram

graph TD
  1fe03f64_2849_6816_8986_db64c86b33a0["on_text()"]
  b9664d7e_7900_dd8a_b9b3_2ee136c7b790["FakeCallbackHandler"]
  1fe03f64_2849_6816_8986_db64c86b33a0 -->|defined in| b9664d7e_7900_dd8a_b9b3_2ee136c7b790
  fdd54958_c95c_1aa0_ed0a_cda4024473cf["on_text()"]
  fdd54958_c95c_1aa0_ed0a_cda4024473cf -->|calls| 1fe03f64_2849_6816_8986_db64c86b33a0
  063597b1_65b5_83fa_bbe5_aa180845db69["on_text_common()"]
  1fe03f64_2849_6816_8986_db64c86b33a0 -->|calls| 063597b1_65b5_83fa_bbe5_aa180845db69
  fdd54958_c95c_1aa0_ed0a_cda4024473cf["on_text()"]
  1fe03f64_2849_6816_8986_db64c86b33a0 -->|calls| fdd54958_c95c_1aa0_ed0a_cda4024473cf
  style 1fe03f64_2849_6816_8986_db64c86b33a0 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/partners/openai/tests/unit_tests/fake/callbacks.py lines 181–182

    def on_text(self, *args: Any, **kwargs: Any) -> Any:
        self.on_text_common()

Domain

Subdomains

Called By

Frequently Asked Questions

What does on_text() do?
on_text() is a function in the langchain codebase, defined in libs/partners/openai/tests/unit_tests/fake/callbacks.py.
Where is on_text() defined?
on_text() is defined in libs/partners/openai/tests/unit_tests/fake/callbacks.py at line 181.
What does on_text() call?
on_text() calls 2 function(s): on_text, on_text_common.
What calls on_text()?
on_text() is called by 1 function(s): on_text.

Analyze Your Own Codebase

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

Try Supermodel Free