# Kore Agentic Chat SDK

## As a package

you can install this package in any project like react, vue, angular, etc.

1. install the package
```bash
npm install kore-agentic-chat-sdk
```

2. import the package
```bash
import { initialize } from 'kore-agentic-chat-sdk';
```

3. configure and initialize the chat
```bash
const chatConfig = {
  containerId: 'your-container-id', // pass the container id where the chat will be rendered
  apiKey: 'api-key', // pass the api key
  baseUrl: 'base-url' // pass the base url
};

initialize(chatConfig);
```

## As a script

Include the script in your html file by configuring the chat
```bash
<script src="https://cdn.jsdelivr.net/npm/kore-agentic-chat-sdk@latest/dist/esm/kore-agentic-chat-sdk.js"></script>
<script>
  const chatConfig = {
    containerId: 'your-container-id', // pass the container id where the chat will be rendered
    apiKey: 'api-key', // pass the api key
    baseUrl: 'base-url' // pass the base url
  };
  KoreAgenticChatSDK.initialize(chatConfig);
</script>
```