# import_langkit

> **Function** in `langchain_community`

📖 [View in docs](https://reference.langchain.com/python/langchain-community/callbacks/whylabs_callback/import_langkit)

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

## Signature

```python
import_langkit(
    sentiment: bool = False,
    toxicity: bool = False,
    themes: bool = False,
) -> Any
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `sentiment` | `bool` | No | Whether to import the langkit.sentiment module. Defaults to False. (default: `False`) |
| `toxicity` | `bool` | No | Whether to import the langkit.toxicity module. Defaults to False. (default: `False`) |
| `themes` | `bool` | No | Whether to import the langkit.themes module. Defaults to False. (default: `False`) |

## Returns

`Any`

The imported langkit module.

---

[View source on GitHub](https://github.com/langchain-ai/langchain-community/blob/a6a6079511ac8a5c1293337f88096b8641562e77/libs/community/langchain_community/callbacks/whylabs_callback.py#L15)