dialogue-db
v1.0.14
Published
TypeScript SDK for DialogueDB - managed database service for AI memory and conversation management
Maintainers
Readme
DialogueDB Client SDK
A TypeScript SDK for DialogueDB — managed infrastructure for AI conversations.
Installation
npm install dialogue-dbRequires Node.js 18+.
Quick Start
import { DialogueDB } from 'dialogue-db';
const db = new DialogueDB({ apiKey: process.env.DIALOGUE_DB_API_KEY });
// Create a dialogue with an initial message
const dialogue = await db.createDialogue({
messages: [{ role: 'user', content: 'Hello!' }]
});
// Add a response (saved immediately)
await dialogue.saveMessage({
role: 'assistant',
content: 'Hi there!'
});
// Update conversation state
await dialogue.saveState({ topic: 'greeting' });Documentation
Full SDK documentation is available at docs.dialoguedb.com/sdk/overview:
- Overview & Configuration — Installation, settings, usage patterns
- Dialogues — DialogueDB class, Dialogue class, threading
- Messages — Message class, content types, pagination
- Memory & Search — Memory management, semantic search, direct API
Environment Variables
Set DIALOGUE_DB_API_KEY to configure the SDK automatically without passing it to the constructor.
License
MIT
