function memoryStream(source, options?): UpsertableStreamDurability;Defined in: packages/ai/src/stream-durability.ts:331
The zero-infrastructure delivery-durability backend. Its versioned cursor is deliberately private: callers and core only pass the returned string back.
Construct from the incoming Request (HTTP transports) or from an explicit MemoryStreamInit (server functions / direct calls that already know the run id).
Logs live in a process-global map, so this backend is for development, tests, and single-process deployments only. Completed runs are evicted after a grace window (see COMPLETED_LOG_TTL_MS); a resume of an evicted or unknown run fails loudly rather than hanging.
Request | MemoryStreamInit
MemoryStreamOptions = {}