@polyweave/dialog (1.0.5)
Published 2026-07-10 23:44:14 +00:00 by Dvorak
Installation
@polyweave:registry=https://hub.kl1.tenere.ai/api/packages/Polyweave/npm/npm install @polyweave/dialog@1.0.5"@polyweave/dialog": "1.0.5"About this package
Dialog
Dialog and conversation history wrappers for the Polyweave platform. Provides dialog, compact dialog, streaming dialog, voice dialog, observational dialog, and token counting utilities.
Synopsis
import { createDialog, createDialogCompact } from '@polyweave/dialog';
const dialog = createDialog();
dialog.addMessage({ role: 'user', content: 'Hello' });
Install
npm install @polyweave/dialog
API
Modules
dialog- Full conversation history dialog wrapperdialogCompact- Memory-efficient compact dialogstreamingDialog- Dialog with streaming supportvoiceDialog- Voice-enabled dialog wrapperobservationalDialog- Dialog with observation trackingtokenCounter- Token counting utilities
Tests
npm test
Requirements
- Node.js >= 18.0.0
License
MIT
Dependencies
Development Dependencies
| ID | Version |
|---|---|
| @rigor/core | * |
Peer Dependencies
| ID | Version |
|---|---|
| @polyweave/core | * |
| @polyweave/durability | * |
| @polyweave/simplemem | * |
Keywords
polyweave
dialog
conversation
history