get_color_mapping#

langchain_core.utils.input.get_color_mapping(items: list[str], excluded_colors: list | None = None) dict[str, str][source]#

Get mapping for items to a support color.

Parameters:
  • items (list[str]) – The items to map to colors.

  • excluded_colors (list | None) – The colors to exclude.

Returns:

The mapping of items to colors.

Return type:

dict[str, str]