UNPKG

@tanstack/ai-persistence

Version:

Composable state persistence for TanStack AI messages, runs, interrupts, metadata, and locks.

20 lines (19 loc) 806 B
import { ArtifactStore, BlobStore, GenerationRunStore, InterruptStore, MessageStore, MetadataStore, RunStore } from './types.js'; interface MemoryPersistenceStores { messages: MessageStore; runs: RunStore; generationRuns: GenerationRunStore; interrupts: InterruptStore; metadata: MetadataStore; artifacts: ArtifactStore; blobs: BlobStore; } /** * In-process reference backend for the full state + generation store set. * * Returns messages + runs + generationRuns + interrupts + metadata + artifacts * + blobs. Locks are not included — use `InMemoryLockStore` + `withLocks` from * `@tanstack/ai` when a test or single-process app needs coordination. */ export declare function memoryPersistence(): import('./types.js').AIPersistence<MemoryPersistenceStores>; export {};