langchain_core.utils.input
.print_textΒΆ
- langchain_core.utils.input.print_text(text: str, color: Optional[str] = None, end: str = '', file: Optional[TextIO] = None) None [source]ΒΆ
Print text with highlighting and no end characters.
If a color is provided, the text will be printed in that color. If a file is provided, the text will be written to that file.
- Parameters
text (str) β The text to print.
color (Optional[str]) β The color to use. Defaults to None.
end (str) β The end character to use. Defaults to ββ.
file (Optional[TextIO]) β The file to write to. Defaults to None.
- Return type
None