1import { UltraContext } from 'ultracontext'2const uc = new UltraContext({ apiKey: 'uc_...' })34// Build conversation history (schemaless)5await uc.append('ctx_123', { role: 'user', content: '...' })6await uc.append('ctx_123', { role: 'assistant', content: '...' })78// Changes to existing messages create versions9await uc.update('ctx_123', { id: 'msg_1', content: 'Updated system prompt' }) // v21011// Rollback and branch from any point12const { data } = await uc.get('ctx_123', { version: 0 })13const branch = await uc.create({ from: 'ctx_123', version: 1 })1415// Use with any LLM framework16const response = await generateText({ model, messages: data })
First seen: 2026-01-21 21:41
Last seen: 2026-01-21 22:41