Import the `createAiChat` and `createChatAdapter` functions from the `@nlux/core` and `@nlux/langchain` packages.

```tsx
import {createAiChat} from '@nlux/core';
import {createChatAdapter} from '@nlux/langchain';
```

The `createAiChat` function will create the main chat component that you will use to display the chat UI.<br />
The `createChatAdapter` function is used to create an adapter for the LangServe API.
