langchain_community.callbacks.whylabs_callback.import_langkit¶

langchain_community.callbacks.whylabs_callback.import_langkit(sentiment: bool = False, toxicity: bool = False, themes: bool = False) Any[source]¶

Import the langkit python package and raise an error if it is not installed.

Parameters
  • sentiment (bool) – Whether to import the langkit.sentiment module. Defaults to False.

  • toxicity (bool) – Whether to import the langkit.toxicity module. Defaults to False.

  • themes (bool) – Whether to import the langkit.themes module. Defaults to False.

Returns

The imported langkit module.

Return type

Any