Skip to content
Source
Sign inSign up
TanStack/ai
Open History to see the last commit

devtools-memory-store.ts

9 lines422 Bytes

1import { inMemory } from '@tanstack/ai-memory/in-memory'
2​
3/**
4 * Shared process-local memory adapter for the `/devtools-memory` E2E route.
5 * The default `inMemory()` stores raw user/assistant turns (kind `message`)
6 * with zero deps — legible for asserting "what's in memory" in the devtools
7 * panel. Scope is keyed per-test by `threadId` (the Playwright `testId`).
8 */
9export const devtoolsMemoryAdapter = inMemory()