get_colored_text#

langchain_core.utils.input.get_colored_text(text: str, color: str) str[source]#

Get colored text.

Parameters:
  • text (str) – The text to color.

  • color (str) – The color to use.

Returns:

The colored text.

Return type:

str