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]

导入langkit python包,如果未安装则引发错误。

参数:

sentiment: 是否导入langkit.sentiment模块。默认为False。 toxicity: 是否导入langkit.toxicity模块。默认为False。 themes: 是否导入langkit.themes模块。默认为False。

返回:

导入的langkit模块。

Parameters
  • sentiment (bool) –

  • toxicity (bool) –

  • themes (bool) –

Return type

Any