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