API

Polyglot provides both client-side and server-side APIs for chat management and synchronization.

API Components

Quick Reference

Client Storage Operations

import { indexedDbStorage } from './src/services/indexedDbStorage';

// Basic operations
await indexedDbStorage.saveConversation(chat);
const chats = await indexedDbStorage.listConversations();
const chat = await indexedDbStorage.loadConversation(id);
await indexedDbStorage.deleteConversation(id);

Last updated