print_text#
- langchain_core.utils.input.print_text(text: str, color: str | None = None, end: str = '', file: TextIO | None = 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 (str | None) – The color to use. Defaults to None.
end (str) – The end character to use. Defaults to “”.
file (TextIO | None) – The file to write to. Defaults to None.
- Return type:
None