langchain_core.utils.input.get_color_mapping¶

langchain_core.utils.input.get_color_mapping(items: List[str], excluded_colors: Optional[List] = 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 (Optional[List]) – The colors to exclude.

Returns

The mapping of items to colors.

Return type

Dict[str, str]