```tsx
import {AiChat, useAsBatchAdapter} from '@nlux/react';

const App = () => {
    const myCustomAdapter = useAsBatchAdapter(
        async (prompts: string[]) => {
            // Submit the prompt and get the response ...
        }
    );

    return <AiChat adapter={myCustomAdapter} />;
}
```
