on_text() — langchain Function Reference
Architecture documentation for the on_text() function in streaming_stdout.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD a53ee101_7795_81d9_5a67_489e21d48117["on_text()"] 6b65bf57_0fa9_b411_5886_294d6dbe5842["StreamingStdOutCallbackHandler"] a53ee101_7795_81d9_5a67_489e21d48117 -->|defined in| 6b65bf57_0fa9_b411_5886_294d6dbe5842 style a53ee101_7795_81d9_5a67_489e21d48117 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/core/langchain_core/callbacks/streaming_stdout.py lines 138–144
def on_text(self, text: str, **kwargs: Any) -> None:
"""Run on an arbitrary text.
Args:
text: The text to print.
**kwargs: Additional keyword arguments.
"""
Domain
Subdomains
Source
Frequently Asked Questions
What does on_text() do?
on_text() is a function in the langchain codebase, defined in libs/core/langchain_core/callbacks/streaming_stdout.py.
Where is on_text() defined?
on_text() is defined in libs/core/langchain_core/callbacks/streaming_stdout.py at line 138.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free